CN109218261A - A kind of data processing method and data processing equipment - Google Patents

A kind of data processing method and data processing equipment Download PDF

Info

Publication number
CN109218261A
CN109218261A CN201710532715.5A CN201710532715A CN109218261A CN 109218261 A CN109218261 A CN 109218261A CN 201710532715 A CN201710532715 A CN 201710532715A CN 109218261 A CN109218261 A CN 109218261A
Authority
CN
China
Prior art keywords
data
communication
protocol
information
network
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
CN201710532715.5A
Other languages
Chinese (zh)
Other versions
CN109218261B (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 CN201710532715.5A priority Critical patent/CN109218261B/en
Publication of CN109218261A publication Critical patent/CN109218261A/en
Application granted granted Critical
Publication of CN109218261B publication Critical patent/CN109218261B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • 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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the present invention discloses a kind of data processing method and data processing equipment, which comprises generates communication data;Select network data information corresponding with the communication data;Traversal processing is carried out to the Data Transport Protocol information prestored based on the network data information, obtains the communication protocol for transmitting the communication data;The communication data is packaged into corresponding communication data packet in the way of the data packet to match with the communication protocol;The communication data packet is sent, the communication data packet is transmitted to the terminal for supporting the communication protocol.

Description

A kind of data processing method and data processing equipment
Technical field
The present invention relates to the data transmission technology of the communications field more particularly to a kind of data processing methods and data processing to fill It sets.
Background technique
Client-server system based on Internet, during realizing network communication, it is often necessary to face root The case where selecting differing transmission protocols and package mode according to user's particular network environment common are and only support to pass transport control protocol It discusses the network of (Transmission Control Protocol, TCP) transmission, only open the local area network and network of 80 ports The mobile network etc. that boundary constantly switches.User's particular network environment to need to be spy during transmitting network data Fixed adaptation uses different data packet modes.
Currently, the realization of the process of the transmitting network data mainly passes through the envelope under binding service logic and network environment Packet mode realizes the feelings for corresponding to a variety of package modes there are many logic since network environment is different to same business occur Condition.However, a variety of logics realize that the case where corresponding a variety of package modes seriously increases software complexity, be unfavorable for extension and Maintenance.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of data processing method to solve problems of the prior art And data processing equipment.
The technical solution of the embodiment of the present invention is achieved in that
In a first aspect, the embodiment of the present invention provides a kind of data processing method, which comprises
Generate communication data;
Select network data information corresponding with the communication data;
Traversal processing is carried out to the Data Transport Protocol information prestored based on the network data information, is obtained described in transmission The communication protocol of communication data;
The communication data is packaged into corresponding communication in the way of the data packet to match with the communication protocol Data packet;
The communication data packet is sent, the communication data packet is transmitted to the terminal for supporting the communication protocol.
Second aspect, the embodiment of the present invention provide a kind of data processing equipment, and described device includes: generation module, matching Module, processing module, package module and sending module;
The generation module, for generating communication data;
The matching module, for selecting network data information corresponding with the communication data;
The processing module, for being traversed based on the network data information to the Data Transport Protocol information prestored Processing, obtains the communication protocol for transmitting the communication data;
The package module, in the way of the data packet to match with the communication protocol by the communication data It is packaged into corresponding communication data packet;
The communication data packet is transmitted to described in support by the sending module for sending the communication data packet The terminal of communication protocol.
The third aspect, the embodiment of the present invention provide a kind of data processing equipment, and the data processing equipment includes:
Memory, for storing the computer program that can be run on a processor;
Processor when for running the computer program, executes the step of the data processing method as described in above-described embodiment Suddenly.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, are stored thereon with computer program, the computer journey It is realized when sequence is executed by processor as described in above-described embodiment the step of data processing method.
Data processing method and data processing equipment described in the embodiment of the present invention generate communication data;Selection is led to described The corresponding network data information of letter data;The Data Transport Protocol information prestored is traversed based on the network data information Processing, obtains the communication protocol for transmitting the communication data;It will in the way of the data packet to match with the communication protocol The communication data is packaged into corresponding communication data packet;The communication data packet is sent, the communication data packet is transmitted To the terminal for supporting the communication protocol.In this way, the embodiment of the present invention is by communication protocol independently of network environment or service logic Processing, thus communication protocol can need flexible choice according to specific business, therefore can decouple the envelope of the data under user network environment Packet mode and service logic are realized, so that only needing a set of business realizing that can be adapted to multiple network environment, in a variety of data packets Flexible choice between mode, thus enhance software to the adaptability of user network, and generated in reply future customer network When new change, it is not necessarily to reconstruction software, only needs iteration.
Detailed description of the invention
Fig. 1 is the implementation process schematic diagram of one information processing method of the embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram one of data processing method of the embodiment of the present invention;
Fig. 3 is the hierarchical diagram of ICP/IP protocol of embodiment of the present invention stack;
Fig. 4 is the implementation process schematic diagram two of data processing method of the embodiment of the present invention;
The corresponding relationship list schematic diagram stored in the communication protocol information that Fig. 5 prestores for the embodiment of the present invention;
Fig. 6 is the implementation process schematic diagram three of data processing method of the embodiment of the present invention;
The corresponding relationship list schematic diagram stored in the communication protocol information that Fig. 7 prestores for the embodiment of the present invention;
Fig. 8 is the implementation process schematic diagram four of data processing method of the embodiment of the present invention;
Fig. 9 is the specific implementation flow schematic diagram of traditional data processing method;
Figure 10 is the specific implementation flow schematic diagram of data processing method of the embodiment of the present invention;
Figure 11 is the composed structure schematic diagram of data processing equipment of the embodiment of the present invention;
Figure 12 is an optional hardware structural diagram of the embodiment of the present invention for realizing the data processing equipment.
Specific embodiment
The technical solution of the present invention is further elaborated in the following with reference to the drawings and specific embodiments.
The present invention is further described in detail below with reference to the accompanying drawings and embodiments.It should be appreciated that mentioned herein Embodiment is only used to explain the present invention, is not intended to limit the present invention.In addition, embodiment provided below is for implementing Section Example of the invention, rather than provide and implement whole embodiments of the invention, in the absence of conflict, the present invention is implemented Example record technical solution can mode in any combination implement.
Referring to an optional configuration diagram of data processing system provided in an embodiment of the present invention shown in fig. 1, In the application scenarios for carrying out service interaction with second terminal 12, first terminal 11 will need to route by network to be led to one terminal 11 Letter data is transmitted to second terminal 12.Specifically, first terminal 11 can be used for first according to network environment or service logic determination Transmit the communication protocol of communication data;Further, first terminal 11 by the communications data network route to it is identified The communication data is carried out data encapsulation process by the corresponding protocol stack of communication protocol, is generated communication data packet and is transmitted to Second terminal 12.Certainly, the first terminal 11 and the second terminal 12 all can be terminal device or server apparatus.Such as This, the data packet mode and service logic that can be decoupled under user network environment are realized, so that only needing a set of business realizing It is adapted to multiple network environment, the flexible choice between a variety of data packet modes, to enhance adaptation of the software to user network Property, and when coping with the new change that future customer network generates, it is not necessarily to reconstruction software, only needs iteration.
Fig. 2 is the implementation process schematic diagram one of data processing method of the embodiment of the present invention, as shown in Fig. 2, the method packet It includes:
Step 201: generating communication data, the communication data can carry out for first terminal by application program and user Interactive business datum;
Here, the first terminal can be terminal device or server apparatus.When the first terminal is terminal device When, it can be desktop computer, TV set-top box, Xbox/PS3 that first terminal, which is the equipment for running application program in user side, The fixed terminal equipments such as game machine, outdoor advertising display screen;It may be smart phone, laptop, tablet computer and vehicle Carry the mobile terminal devices such as advertising display screen;When the first terminal is server apparatus, first terminal is in server side Run the application server of application program.
Here, the communication data is related with application program interaction logic, such as chat data, transfer data, upper offline Data etc..It should be noted that obtaining user in the application program interactive process with first terminal under different application scenarios The mode of the business datum of middle generation is different, can be by reading the corresponding guarantor of application program as a kind of possible implementation The file of business datum is deposited, to obtain the business datum that user generates in the application program interactive process with first terminal.
Step 202: selection network data information corresponding with the communication data;
Here, the network data information includes that type of service belonging to network environment information and communication data i.e. business is patrolled Volume.
Step 203: traversal processing being carried out to the Data Transport Protocol information prestored based on the network data information, is obtained Transmit the communication protocol of the communication data;
Here, the communication protocol includes publicly-owned agreement and proprietary protocol, wherein the publicly-owned agreement mainly includes TCP Agreement, User Datagram Protocol (User Datagram Protocol, UDP), File Transfer Protocol (File Transfer Protocol, FTP) and hypertext transfer protocol (Hypertext Transfer Protocol, HTTP) etc..
In one embodiment, it is described to be believed based on the network data when network data information is network environment information It ceases and traversal processing is carried out to the Data Transport Protocol information prestored, the communication protocol for obtaining transmitting the communication data includes: right The Data Transport Protocol information prestored is parsed, and obtains including at least network environment information, communication protocol and the net The information of corresponding relationship between network environmental information and communication protocol;When the network data information is the network environment information When, according to the corresponding relationship between the network environment information and communication protocol, inquiry obtains corresponding to the network environment information Communication protocol.
In another embodiment, it is described to be based on institute when the network data information is type of service belonging to communication data It states network data information and traversal processing is carried out to the Data Transport Protocol information prestored, obtain the communication for transmitting the communication data Agreement includes: to parse to the Data Transport Protocol information prestored, obtain include at least type of service, communication protocol, And between the type of service and communication protocol corresponding relationship information;When the network data information is belonging to communication data When type of service, according to the corresponding relationship between the type of service and communication protocol, inquiry obtains corresponding to the type of service Communication protocol.
Step 204: being packaged into the communication data pair in the way of the data packet to match with the communication protocol The communication data packet answered;
In one embodiment, it is described in the way of the data packet to match with the communication protocol by the communication data It is packaged into corresponding communication data packet, comprising: be routed to the communication data in protocol stack set and the communication protocol pair In the protocol stack answered;The communication data is packaged into corresponding communication data packet according to the protocol stack format of the protocol stack.
It should be understood that in one embodiment of the invention, protocol stack set, the protocol stack collection can be preset Closing includes at least one of publicly-owned protocol stack and proprietary protocol stack protocol stack.
Wherein, protocol stack set refers to the summation of each layer protocol in network, the header packet information comprising communication protocol, and data pass Defeated byte digit etc., with ICP/IP protocol stack puppet example, as shown in figure 3, ICP/IP protocol stack includes application layer, transport layer, network Layer and network interface layer, wherein network interface layer is the base of ICP/IP protocol model, is responsible for sending and receiving for data frame. Data envelope is dressed up internet data packet by interconnection protocol by network layer, and runs necessary routing algorithm.It here include net Border agreement (Internet Protocol, IP), address resolution protocol (Address Resolution Protocol, ARP), net Border control message agreement (Internet Control Message Protocol, ICMP) and interconnection igmpinternet (Internet Group Management Protocol, IGMP) these four interconnection protocols.
Transport layer provides communication session by transport protocol between devices.The selection of transport protocol is according to transmission side data Depending on formula, two kinds of agreements of TCP and UDP are generally included.Application layer mainly includes common FTP, HTTP, domain for accessing network Name system (Domain Name System, DNS) agreement and TELNET agreement.
In four layer protocols of ICP/IP protocol stack, each layer data encapsulation situation includes: to incite somebody to action when sending business datum Business datum is from top layer to lowest level packing once (plus packet header and part trailer information);When receiving business datum, then Business datum is successively unpacked from lowest level to top layer and (removes packet header and part trailer information).These are packaged and operation of unpacking Exactly realized by ICP/IP protocol stack.
Further, in still another embodiment of the process, if the method can also include: in the protocol stack set not In the presence of protocol stack corresponding with one or more communication protocols that the communication data uses are transmitted, then in the protocol stack set The protocol stack of middle addition missing.
It is appreciated that communication protocol is to meet the progress of technology, can continuous renolation with advances in technology, because And may be sometime, the section communication agreement in protocol stack set updates, at this time, it may be necessary to assist to the section communication View is modified.
Further, in still another embodiment of the process, the method also includes: receive Data Transport Protocol update letter Breath;Transport protocol more new information is subject at update original communication protocol in the data transmission information based on the data Reason.
Step 205: sending the communication data packet, the communication data packet is transmitted to and supports the communication protocol Second terminal.
Here, the second terminal can be terminal device or server apparatus.When the second terminal is terminal device When, it can be desktop computer, TV set-top box, Xbox/PS3 that second terminal, which is the equipment for running application program in user side, The fixed terminal equipments such as game machine, outdoor advertising display screen;It may be smart phone, laptop, tablet computer and vehicle Carry the mobile terminal devices such as advertising display screen;When the second terminal is server apparatus, second terminal is in server side Run the application server of application program.
It is emphasized that the embodiment of the present invention by communication protocol independently of network environment or business logic processing, thus Communication protocol can need flexible choice according to specific business, if current application scene be same communication data is sent to it is multiple It when the second terminal of different protocol stacks, also can be realized simultaneously, i.e., the described second terminal is either one or more.
Data processing method described in the embodiment of the present invention, generates communication data, and the communication data passes through for first terminal The business datum that application program and user interact;Select network data information corresponding with the communication data;Based on institute It states network data information and traversal processing is carried out to the Data Transport Protocol information prestored, obtain the communication for transmitting the communication data Agreement;The communication data is packaged into corresponding communication data in the way of the data packet to match with the communication protocol Packet;The communication data packet is sent, the communication data packet is transmitted to the second terminal for supporting the communication protocol.Such as This, the embodiment of the present invention is by communication protocol independently of network environment or business logic processing, thus communication protocol can be according to specific Business needs flexible choice, therefore can decouple the data packet mode under user network environment and service logic realization, so that only Need a set of business realizing that can be adapted to multiple network environment, the flexible choice between a variety of data packet modes, to enhance soft Part is not necessarily to reconstruction software, need to only change to the adaptability of user network, and when coping with the new change that future customer network generates Generation.
Fig. 4 is the implementation process schematic diagram two of data processing method of the embodiment of the present invention, net described in the embodiment of the present invention Network data information is type of service, that is, service logic belonging to communication data, as shown in Figure 4, which comprises
Step 401: generating communication data, the communication data is that first terminal is interacted by application program and user Business datum;
Here, the first terminal can be terminal device or server apparatus.When the first terminal is terminal device When, it can be desktop computer, TV set-top box, Xbox/PS3 that first terminal, which is the equipment for running application program in user side, The fixed terminal equipments such as game machine, outdoor advertising display screen;It may be smart phone, laptop, tablet computer and vehicle Carry the mobile terminal devices such as advertising display screen;When the first terminal is server apparatus, first terminal is in server side Run the application server of application program.
Here, the communication data is related with application program interaction logic, such as chat data, transfer data, upper offline Data etc..It should be noted that obtaining user in the application program interactive process with first terminal under different application scenarios The mode of the business datum of middle generation is different, can be by reading the corresponding guarantor of application program as a kind of possible implementation The file of business datum is deposited, to obtain the business datum that user generates in the application program interactive process with first terminal.
Step 402: selection network data information corresponding with the communication data;
Here, the network data information includes type of service belonging to communication data i.e. service logic.
In addition, above-mentioned type of service is used to indicate the division for executing type belonging to different data processing operations, for example, The corresponding type of service of user's going on line or off line business datum of chat application is account state service type, chat application journey The corresponding type of service of chat service data of sequence, is interactive service type, the order business number in service for life application program It is commercial occupation type etc. according to corresponding type of service.
It should be understood that, in order to realize exchange data without any confusion, just must comply with thing in data communication process The communication protocol first appointed, the communication protocol are the rule and agreement that communication between devices must comply with, communication protocol and industry Service type is related, and the type of service that different communication protocol is supported has difference, for example, being commercial occupation for type of service For type and account state service type, since commercial occupation type is related to pecuniary exchange etc., thus, commercial occupation type Corresponding communication protocol is safe and secret higher ranked etc. relative to the corresponding communication protocol of account state service type.
Step 403~404: parsing the Data Transport Protocol information prestored, obtains including at least service class The information of corresponding relationship between type, communication protocol and the type of service and communication protocol;When the network data information is logical When type of service belonging to letter data, according to the corresponding relationship between the type of service and communication protocol, inquiry is corresponded to The communication protocol of the type of service;
Here, the communication protocol includes publicly-owned agreement and proprietary protocol, wherein the publicly-owned agreement mainly include TCP, UDP, FTP and HTTP etc..
Type of service belonging to the business datum is specifically detected, for example, according to the business datum and business that prestore The corresponding relationship of type obtains type of service corresponding with business datum, alternatively, being manually entered business in related interfaces by user Type, and the type of service according to belonging to application program and business datum inquires the communication protocol information prestored, determines transmission The communication protocol that business datum uses, wherein there are many type of service possibility supported by a communication protocol, thus, The communication protocol that determining transmission services data use may have one may also have it is multiple.
It is emphasized that the content in the above-mentioned communication protocol information prestored is different under different application scenarios, show Example is described as follows:
The first example may include that the corresponding relationship of type of service and communication protocol arranges in the communication protocol information prestored Table, thus, after obtaining type of service belonging to business datum, inquire above-mentioned to corresponding relationship list, acquisition and type of service Corresponding one or more communication protocol.
For example, in this example, if the corresponding relationship list such as Fig. 5 institute stored in the communication protocol information prestored Show, then knowing how type of service belonging to business datum is wireless telecommunications, then inquire corresponding relationship list as shown in Figure 5, Determine that communication protocol corresponding with the type of service is udp protocol.
Step 405: being packaged into the communication data pair in the way of the data packet to match with the communication protocol The communication data packet answered;
In one embodiment, it is described in the way of the data packet to match with the communication protocol by the communication data It is packaged into corresponding communication data packet, comprising: be routed to the communication data in protocol stack set and the communication protocol pair In the protocol stack answered;The communication data is packaged into corresponding communication data packet according to the protocol stack format of the protocol stack.
It should be understood that in one embodiment of the invention, protocol stack set, the protocol stack collection can be preset Closing includes at least one of publicly-owned protocol stack and proprietary protocol stack protocol stack.
Wherein, protocol stack set refers to the summation of each layer protocol in network, the header packet information comprising communication protocol, and data pass Defeated byte digit etc., with ICP/IP protocol stack puppet example, as shown in figure 3, ICP/IP protocol stack includes application layer, transport layer, network Layer and network interface layer, wherein network interface layer is the base of ICP/IP protocol model, is responsible for sending and receiving for data frame. Data envelope is dressed up internet data packet by interconnection protocol by network layer, and runs necessary routing algorithm.Here include IP, These four interconnection protocols of ARP, ICMP and IGMP.
Transport layer provides communication session by transport protocol between devices.The selection of transport protocol is according to transmission side data Depending on formula, two kinds of agreements of TCP and UDP are generally included.Application layer mainly includes common FTP, HTTP, DNS for accessing network Agreement and TELNET agreement.
In four layer protocols of ICP/IP protocol stack, each layer data encapsulation situation includes: to incite somebody to action when sending business datum Business datum is from top layer to lowest level packing once (plus packet header and part trailer information);When receiving business datum, then Business datum is successively unpacked from lowest level to top layer and (removes packet header and part trailer information).These are packaged and operation of unpacking Exactly realized by ICP/IP protocol stack.
Further, in still another embodiment of the process, if the method can also include: in the protocol stack set not In the presence of protocol stack corresponding with one or more communication protocols that the communication data uses are transmitted, then in the protocol stack set The protocol stack of middle addition missing.
It is appreciated that communication protocol is to meet the progress of technology, can continuous renolation with advances in technology, because And may be sometime, the section communication agreement in protocol stack set updates, at this time, it may be necessary to assist to the section communication View is modified.
Further, in still another embodiment of the process, the method also includes: receive Data Transport Protocol update letter Breath;Transport protocol more new information is subject at update original communication protocol in the data transmission information based on the data Reason.
Step 406: sending the communication data packet, the communication data packet is transmitted to and supports the communication protocol Second terminal.
Here, the second terminal can be terminal device or server apparatus.When the second terminal is terminal device When, it can be desktop computer, TV set-top box, Xbox/PS3 that second terminal, which is the equipment for running application program in user side, The fixed terminal equipments such as game machine, outdoor advertising display screen;It may be smart phone, laptop, tablet computer and vehicle Carry the mobile terminal devices such as advertising display screen;When the second terminal is server apparatus, second terminal is in server side Run the application server of application program.
It is emphasized that the embodiment of the present invention by communication protocol independently of network environment or business logic processing, thus Communication protocol can need flexible choice according to specific business, if current application scene be same communication data is sent to it is multiple It when the second terminal of different protocol stacks, also can be realized simultaneously, i.e., the described second terminal is either one or more.
Data processing method described in the embodiment of the present invention, by communication protocol independently of business logic processing, thus communication protocols View can need flexible choice according to specific business, therefore can decouple data packet mode and service logic under user network environment It realizes, so that only need a set of business realizing that can be adapted to multiple network environment, the flexible choice between a variety of data packet modes, To enhance software to the adaptability of user network, and when coping with the new change that future customer network generates, without reconstruct Software only needs iteration.
Fig. 6 is the implementation process schematic diagram three of data processing method of the embodiment of the present invention, as shown in fig. 6, the method packet It includes:
Step 601: generating communication data, the communication data is that first terminal is interacted by application program and user Business datum;
Here, the first terminal can be terminal device or server apparatus.When the first terminal is terminal device When, it can be desktop computer, TV set-top box, Xbox/PS3 that first terminal, which is the equipment for running application program in user side, The fixed terminal equipments such as game machine, outdoor advertising display screen;It may be smart phone, laptop, tablet computer and vehicle Carry the mobile terminal devices such as advertising display screen;When the first terminal is server apparatus, first terminal is in server side Run the application server of application program.
Here, the communication data is related with application program interaction logic, such as chat data, transfer data, upper offline Data etc..It should be noted that obtaining user in the application program interactive process with first terminal under different application scenarios The mode of the business datum of middle generation is different, can be by reading the corresponding guarantor of application program as a kind of possible implementation The file of business datum is deposited, to obtain the business datum that user generates in the application program interactive process with first terminal.
Step 602: selection network data information corresponding with the communication data;
Here, the network data information includes network environment information.
Step 603~604: parsing the Data Transport Protocol information prestored, obtains including at least network rings The information of corresponding relationship between border information, communication protocol and the network environment information and communication protocol;When the network data When information is the network environment information, according to the corresponding relationship between the network environment information and communication protocol, inquire To the communication protocol of the correspondence network environment information;
Here, the communication protocol includes publicly-owned agreement and proprietary protocol, wherein the publicly-owned agreement mainly include TCP, UDP, FTP and HTTP etc..
It is emphasized that the content in the above-mentioned communication protocol information prestored is different under different application scenarios, show Example is described as follows:
The first example may include the corresponding relationship of network environment information and communication protocol in the communication protocol information prestored List, thus, obtaining the corresponding network environment information of the communication data, i.e. network environment information locating for first terminal Afterwards, it inquires above-mentioned to corresponding relationship list, acquisition one or more communication protocols corresponding with the network environment information.
For example, in this example, if the corresponding relationship list such as Fig. 7 institute stored in the communication protocol information prestored Show, then knowing how the corresponding network environment information of the communication data is the local area network for only opening 80 ports, then inquiry such as Fig. 7 Shown in corresponding relationship list, determine that corresponding with network environment information communication protocol is http protocol.
Step 605: being packaged into the communication data pair in the way of the data packet to match with the communication protocol The communication data packet answered;
In one embodiment, it is described in the way of the data packet to match with the communication protocol by the communication data It is packaged into corresponding communication data packet, comprising: be routed to the communication data in protocol stack set and the communication protocol pair In the protocol stack answered;The communication data is packaged into corresponding communication data packet according to the protocol stack format of the protocol stack.
It should be understood that in one embodiment of the invention, protocol stack set, the protocol stack collection can be preset Closing includes at least one of publicly-owned protocol stack and proprietary protocol stack protocol stack.
Wherein, protocol stack set refers to the summation of each layer protocol in network, the header packet information comprising communication protocol, and data pass Defeated byte digit etc., with ICP/IP protocol stack puppet example, as shown in figure 3, ICP/IP protocol stack includes application layer, transport layer, network Layer and network interface layer, wherein network interface layer is the base of ICP/IP protocol model, is responsible for sending and receiving for data frame. Data envelope is dressed up internet data packet by interconnection protocol by network layer, and runs necessary routing algorithm.Here include IP, These four interconnection protocols of ARP, ICMP and IGMP.
Transport layer provides communication session by transport protocol between devices.The selection of transport protocol is according to transmission side data Depending on formula, two kinds of agreements of TCP and UDP are generally included.Application layer mainly includes common FTP, HTTP, DNS for accessing network Agreement and TELNET agreement.
In four layer protocols of ICP/IP protocol stack, each layer data encapsulation situation includes: to incite somebody to action when sending business datum Business datum is from top layer to lowest level packing once (plus packet header and part trailer information);When receiving business datum, then Business datum is successively unpacked from lowest level to top layer and (removes packet header and part trailer information).These are packaged and operation of unpacking Exactly realized by ICP/IP protocol stack.
Further, in still another embodiment of the process, if the method can also include: in the protocol stack set not In the presence of protocol stack corresponding with one or more communication protocols that the communication data uses are transmitted, then in the protocol stack set The protocol stack of middle addition missing.
It is appreciated that communication protocol is to meet the progress of technology, can continuous renolation with advances in technology, because And may be sometime, the section communication agreement in protocol stack set updates, at this time, it may be necessary to assist to the section communication View is modified.
Further, in still another embodiment of the process, the method also includes: receive Data Transport Protocol update letter Breath;Transport protocol more new information is subject at update original communication protocol in the data transmission information based on the data Reason.
Step 606: sending the communication data packet, the communication data packet is transmitted to and supports the communication protocol Second terminal.
Here, the second terminal can be terminal device or server apparatus.When the second terminal is terminal device When, it can be desktop computer, TV set-top box, Xbox/PS3 that second terminal, which is the equipment for running application program in user side, The fixed terminal equipments such as game machine, outdoor advertising display screen;It may be smart phone, laptop, tablet computer and vehicle Carry the mobile terminal devices such as advertising display screen;When the second terminal is server apparatus, second terminal is in server side Run the application server of application program.
It is emphasized that the embodiment of the present invention by communication protocol independently of network environment or business logic processing, thus Communication protocol can need flexible choice according to specific business, if current application scene be same communication data is sent to it is multiple It when the second terminal of different protocol stacks, also can be realized simultaneously, i.e., the described second terminal is either one or more.
Data processing method described in the embodiment of the present invention handles communication protocol independently of network environment, thus communication protocols View can need flexible choice according to specific business, therefore can decouple data packet mode and service logic under user network environment It realizes, so that only need a set of business realizing that can be adapted to multiple network environment, the flexible choice between a variety of data packet modes, To enhance software to the adaptability of user network, and when coping with the new change that future customer network generates, without reconstruct Software only needs iteration.
Fig. 8 is the implementation process schematic diagram four of data processing method of the embodiment of the present invention, as shown in figure 8, the method packet It includes:
Step 601: generating communication data, the communication data is that first terminal is interacted by application program and user Business datum;
Here, the first terminal can be terminal device or server apparatus.When the first terminal is terminal device When, it can be desktop computer, TV set-top box, Xbox/PS3 that first terminal, which is the equipment for running application program in user side, The fixed terminal equipments such as game machine, outdoor advertising display screen;It may be smart phone, laptop, tablet computer and vehicle Carry the mobile terminal devices such as advertising display screen;When the first terminal is server apparatus, first terminal is in server side Run the application server of application program.
Here, the communication data is related with application program interaction logic, such as chat data, transfer data, upper offline Data etc..It should be noted that obtaining user in the application program interactive process with first terminal under different application scenarios The mode of the business datum of middle generation is different, can be by reading the corresponding guarantor of application program as a kind of possible implementation The file of business datum is deposited, to obtain the business datum that user generates in the application program interactive process with first terminal.
Step 602: selection network data information corresponding with the communication data;
Here, the network data information includes network environment information.
Step 603~604: parsing the Data Transport Protocol information prestored, obtains including at least network rings The information of corresponding relationship between border information, communication protocol and the network environment information and communication protocol;When the network data When information is the network environment information, according to the corresponding relationship between the network environment information and communication protocol, inquire To the communication protocol of the correspondence network environment information;
Here, the communication protocol includes publicly-owned agreement and proprietary protocol, wherein the publicly-owned agreement mainly include TCP, UDP, FTP and HTTP etc..
It is emphasized that the content in the above-mentioned communication protocol information prestored is different under different application scenarios, show Example is described as follows:
The first example may include the corresponding relationship of network environment information and communication protocol in the communication protocol information prestored List, thus, obtaining the corresponding network environment information of the communication data, i.e. network environment information locating for first terminal Afterwards, it inquires above-mentioned to corresponding relationship list, acquisition one or more communication protocols corresponding with the network environment information.
For example, in this example, if the corresponding relationship list such as Fig. 7 institute stored in the communication protocol information prestored Show, then knowing how the corresponding network environment information of the communication data is the local area network for only opening 80 ports, then inquiry such as Fig. 7 Shown in corresponding relationship list, determine that corresponding with network environment information communication protocol is http protocol.
Step 605: being packaged into the communication data pair in the way of the data packet to match with the communication protocol The communication data packet answered;
In one embodiment, it is described in the way of the data packet to match with the communication protocol by the communication data It is packaged into corresponding communication data packet, comprising: be routed to the communication data in protocol stack set and the communication protocol pair In the protocol stack answered;The communication data is packaged into corresponding communication data packet according to the protocol stack format of the protocol stack.
It should be understood that in one embodiment of the invention, protocol stack set, the protocol stack collection can be preset Closing includes at least one of publicly-owned protocol stack and proprietary protocol stack protocol stack.
Wherein, protocol stack set refers to the summation of each layer protocol in network, the header packet information comprising communication protocol, and data pass Defeated byte digit etc., with ICP/IP protocol stack puppet example, as shown in figure 3, ICP/IP protocol stack includes application layer, transport layer, network Layer and network interface layer, wherein network interface layer is the base of ICP/IP protocol model, is responsible for sending and receiving for data frame. Data envelope is dressed up internet data packet by interconnection protocol by network layer, and runs necessary routing algorithm.Here include IP, These four interconnection protocols of ARP, ICMP and IGMP.
Transport layer provides communication session by transport protocol between devices.The selection of transport protocol is according to transmission side data Depending on formula, two kinds of agreements of TCP and UDP are generally included.Application layer mainly includes common FTP, HTTP, DNS for accessing network Agreement and TELNET agreement.
In four layer protocols of ICP/IP protocol stack, each layer data encapsulation situation includes: to incite somebody to action when sending business datum Business datum is from top layer to lowest level packing once (plus packet header and part trailer information);When receiving business datum, then Business datum is successively unpacked from lowest level to top layer and (removes packet header and part trailer information).These are packaged and operation of unpacking Exactly realized by ICP/IP protocol stack.
Further, in still another embodiment of the process, if the method can also include: in the protocol stack set not In the presence of protocol stack corresponding with one or more communication protocols that the communication data uses are transmitted, then in the protocol stack set The protocol stack of middle addition missing.
It is appreciated that communication protocol is to meet the progress of technology, can continuous renolation with advances in technology, because And may be sometime, the section communication agreement in protocol stack set updates, at this time, it may be necessary to assist to the section communication View is modified.
Further, in still another embodiment of the process, the method also includes: receive Data Transport Protocol update letter Breath;Transport protocol more new information is subject at update original communication protocol in the data transmission information based on the data Reason.
Step 606: sending the communication data packet, the communication data packet is transmitted to and supports the communication protocol Second terminal;
Here, the second terminal can be terminal device or server apparatus.When the second terminal is terminal device When, it can be desktop computer, TV set-top box, Xbox/PS3 that second terminal, which is the equipment for running application program in user side, The fixed terminal equipments such as game machine, outdoor advertising display screen;It may be smart phone, laptop, tablet computer and vehicle Carry the mobile terminal devices such as advertising display screen;When the second terminal is server apparatus, second terminal is in server side Run the application server of application program.
It is emphasized that the embodiment of the present invention by communication protocol independently of network environment or business logic processing, thus Communication protocol can need flexible choice according to specific business, if current application scene be same communication data is sent to it is multiple It when the second terminal of different protocol stacks, also can be realized simultaneously, i.e., the described second terminal is either one or more.
Step 801: when the corresponding network data information of the communication data switches to second from first network data information When network data information, traversal processing is carried out to the Data Transport Protocol information prestored according to the second network data information;
Step 802: inquiry obtains transmitting the new communication protocols of the communication data from the Data Transport Protocol information View;
Step 803: being encapsulated the communication data in the way of the data packet to match with the new communication protocol At sending the communication data packet after corresponding communication data packet.
In one example, if whether corresponding with the communication data network data information of detection changes, the is learnt One terminal is in the mobile network that network boundary constantly switches.If the first terminal is from 4G network switching to Wireless Fidelity (WiFi) When network, then traversal processing is carried out to the Data Transport Protocol information prestored according to the WiFI network;It is transmitted from the data Inquiry obtains transmitting the new communication protocol of the communication data in protocol information, such as proprietary protocol 1;Further, using with The communication data is packaged into after corresponding communication data packet by the data packet mode that the proprietary protocol 1 matches sends institute State communication data packet.
Data processing method described in the embodiment of the present invention handles communication protocol independently of network environment, thus communication protocols View can need flexible choice according to specific business, therefore can decouple data packet mode and service logic under user network environment It realizes, so that only need a set of business realizing that can be adapted to multiple network environment, the flexible choice between a variety of data packet modes, To enhance software to the adaptability of user network, and when coping with the new change that future customer network generates, without reconstruct Software only needs iteration.
Concrete application scene:
Fig. 9 is the specific implementation flow schematic diagram of traditional data processing method, as shown in Figure 9, which comprises
Step 901: user launches application;
Step 902: user interacts with application program generates interaction logic;
Step 903: interaction generates communication data and needs to be sent to server or peer user;
Here, the communication data includes chat data, realaudio data, real time video data etc..
Step 904: before data are sent, detecting the network environment of user;
Step 905: being directed to user network environment, bind transport protocol;
Step 906: according to transport protocol, binding data package mode;
Step 907: being based on selected agreement and package mode, in transmission over networks data, complete network communication.
In the data processing method under step 905 and step 906 direct-coupling service logic and user network environment Data packet mode causes to be adapted to difficulty for the different data package mode under multiple network environment, be unfavorable in a variety of nets Flexibly switch under network environment, is also unfavorable for the simple extension to the new network environment that future occurs.
Figure 10 is the specific implementation flow schematic diagram of data processing method of the embodiment of the present invention, as shown in Figure 10, the side Method includes:
Step 1001: user launches application;
Step 1002: user interacts with application program generates interaction logic;
Step 1003: certain interactions generate communication data and need to be sent to server or peer user, such as chat data, reality When audio data, real time video data etc.;
Step 1004: according to the network environment of user at that time, such as only supports TCP or only open 80 ports, or according to Specific service conditions, as cable network can direct-connected service server, but mobile network involve network boundary switching the problems such as needs Situations such as being indirectly coupled to service server by proxy server selects transport protocol;
Step 1005: according to selected transport protocol, specialization package being done to communication data, such as only TCP is being supported to pass Package is mode under defeated environment, and package is HTTP mode in the environment of only opening 80 port, and under mobile network, package is Privately owned agency agreement mode etc.;
Step 1006: being based on selected agreement and package mode, in transmission over networks data, complete network communication.
In data processing method described in the embodiment of the present invention, by step 1004 and step 1005, user network ring is decoupled The coupling between interaction logic is realized in border, specific transactions, and in software implementing course, interaction logic need not be according to network rings Border, service conditions correspond a set of specific realization, but need to only pay close attention to inherent logic, generate communication number with a set of realization According to, communication data is routed to different transport protocols further according to concrete condition, is packaged and transmits using specific mode, thus Make software that there is good flexibility, adaptability and scalability.
Figure 11 is the composed structure schematic diagram of data processing equipment of the embodiment of the present invention, as shown in figure 11, described device packet It includes: generation module 1101, matching module 1102, processing module 1103, package module 1104 and sending module 1105;
The generation module 1101, for generating communication data, the communication data is that first terminal passes through application program The business datum interacted with user;
The matching module 1102, for selecting network data information corresponding with the communication data;
The processing module 1103, for being carried out based on the network data information to the Data Transport Protocol information prestored Traversal processing obtains the communication protocol for transmitting the communication data;
The package module 1104, in the way of the data packet to match with the communication protocol by the communication Data are packaged into corresponding communication data packet;
The communication data packet is transmitted to support for sending the communication data packet by the sending module 1105 The second terminal of the communication protocol.
In an embodiment of the present invention, the processing module 1103 includes: resolution unit and query unit;
The resolution unit obtains including at least net for parsing the Data Transport Protocol information prestored The information of corresponding relationship between network environmental information, communication protocol and the network environment information and communication protocol;
The query unit is used for when the network data information is the network environment information, according to the network Corresponding relationship between environmental information and communication protocol, inquiry obtain corresponding to the communication protocol of the network environment information.
In an embodiment of the present invention, the processing module 1103 includes: resolution unit and query unit;
The resolution unit obtains including at least industry for parsing the Data Transport Protocol information prestored The information of corresponding relationship between service type, communication protocol and the type of service and communication protocol;
The query unit, for when the network data information be communication data belonging to type of service when, according to institute The corresponding relationship between type of service and communication protocol is stated, inquiry obtains corresponding to the communication protocol of the type of service.
In an embodiment of the present invention, the processing module 1103 is also used to when the corresponding network number of the communication data It is believed that breath is when switching to the second network data information from first network data information, according to the second network data information to prestoring Data Transport Protocol information carries out traversal processing;Inquiry obtains transmitting the communication data from the Data Transport Protocol information New communication protocol;The communication data is packaged into the way of the data packet to match with the new communication protocol The communication data packet is sent after corresponding communication data packet.
In an embodiment of the present invention, the package module 1104 includes routing unit and encapsulation unit;
The routing unit, it is corresponding with the communication protocol in protocol stack set for the communication data to be routed to In protocol stack;
The communication data is packaged into corresponding by the encapsulation unit for the protocol stack format according to the protocol stack Communication data packet.
In an embodiment of the present invention, described device further includes setup module 1106;
The setup module 1106, for protocol stack set to be arranged, the protocol stack set includes publicly-owned protocol stack and private There is at least one of protocol stack protocol stack.
In an embodiment of the present invention, the processing module 1103, if be also used in the protocol stack set there is no with The corresponding protocol stack of one or more communication protocols that the communication data uses is transmitted, then is added in the protocol stack set The protocol stack of missing.
In an embodiment of the present invention, described device further includes receiving module 1107;
The receiving module 1107, for receiving data transport protocol more new information;
The processing module 1103, be also used to based on the data transport protocol more new information to the data transmission information In original communication protocol be subject to update processing.
It will be appreciated by those skilled in the art that in the information processing unit of the present embodiment each module function, before can refer to It states the associated description of information processing method and understands.
In practical application, each comprising modules of the data processing equipment and its specific knot of the corresponding each unit of each module Structure may both correspond to processor.The specific structure of processor can be central processing unit (CPU, Central Processing Unit), microprocessor (MCU, Micro Controller Unit), digital signal processor (DSP, Digital Signal Processing) or programmable logic device (PLC, Programmable Logic Controller) Deng the set of electronic component or electronic component with processing function.Wherein, the processor includes executable code, institute It states executable code to be stored in a storage medium, the processor can be by the communication interfaces such as bus and the storage medium It is connected, when executing the corresponding function of specific each unit, is read from the storage medium and run the executable code. The storage medium is preferably non-moment storage medium for storing the part of the executable code.
Illustratively, the optional hardware structural diagram that Figure 12 shows for realizing the data processing equipment, Including processor 121, input/output interface 122 (such as display screen, touch screen, loudspeaker), storage medium 123 and network Interface 124, component can be through 125 connection communications of system bus.Correspondingly, it is stored in the storage medium 123 of data processing equipment There is the executable instruction for executing data processing method described in the embodiment of the present invention.
Wherein, the storage medium 123 can be flash memory device, random access memory (RAM, Random Access Memory), read-only memory (ROM, Read-Only Memory), magnetic or disk etc. is various can store journey The medium of sequence code.Preferably, the storage medium 123 can be non-volatile memory medium.
Wherein, processor 121 can be CPU, MCU, DSP, PLC, can also be processing circuit, for example, dedicated integrated electricity Road (ASIC, Application Specific Integrated Circuits).
Specifically, the processor 121 is read and is executed from the storage medium 123 by the system bus 125 Following steps can be performed in the executable instruction of data processing method:
Communication data is generated, the communication data is the business number that first terminal is interacted by application program and user According to;
Select network data information corresponding with the communication data;
Traversal processing is carried out to the Data Transport Protocol information prestored based on the network data information, is obtained described in transmission The communication protocol of communication data;
The communication data is packaged into corresponding communication in the way of the data packet to match with the communication protocol Data packet;
The communication data packet is sent, the communication data packet is transmitted to the second end for supporting the communication protocol End.
In an embodiment of the present invention, the processor 121 passes through the system bus 125 from the storage medium 123 The middle executable instruction for reading simultaneously configuration for executing data processing, can also carry out following steps:
The Data Transport Protocol information prestored is parsed, obtains including at least network environment information, communication protocols The information of corresponding relationship between view and the network environment information and communication protocol;
When the network data information is the network environment information, according to the network environment information and communication protocol Between corresponding relationship, inquiry obtains corresponding to the communication protocol of the network environment information.
In an embodiment of the present invention, the processor 121 passes through the system bus 125 from the storage medium 123 The middle executable instruction for reading simultaneously configuration for executing data processing, can also carry out following steps:
The Data Transport Protocol information prestored is parsed, obtain include at least type of service, communication protocol and The information of corresponding relationship between the type of service and communication protocol;
When the network data information be communication data belonging to type of service when, according to the type of service and communication protocols Corresponding relationship between view, inquiry obtain corresponding to the communication protocol of the type of service.
In an embodiment of the present invention, the processor 121 passes through the system bus 125 from the storage medium 123 The middle executable instruction for reading simultaneously configuration for executing data processing, can also carry out following steps:
When the corresponding network data information of the communication data switches to the second network data from first network data information When information, traversal processing is carried out to the Data Transport Protocol information prestored according to the second network data information;
Inquiry obtains transmitting the communication protocol of the communication data from the Data Transport Protocol information.
In an embodiment of the present invention, the processor 121 passes through the system bus 125 from the storage medium 123 The middle executable instruction for reading simultaneously configuration for executing data processing, can also carry out following steps:
The communication data is routed in protocol stack set in protocol stack corresponding with the communication protocol;
The communication data is packaged into corresponding communication data packet according to the protocol stack format of the protocol stack.
In an embodiment of the present invention, the processor 121 passes through the system bus 125 from the storage medium 123 The middle executable instruction for reading simultaneously configuration for executing data processing, can also carry out following steps:
Protocol stack set is set, and the protocol stack set includes at least one of publicly-owned protocol stack and proprietary protocol stack agreement Stack.
In an embodiment of the present invention, the processor 121 passes through the system bus 125 from the storage medium 123 The middle executable instruction for reading simultaneously configuration for executing data processing, can also carry out following steps:
If there is no the one or more communication protocols pair used with the transmission communication data in the protocol stack set The protocol stack answered then adds the protocol stack of missing in the protocol stack set.
In an embodiment of the present invention, the processor 121 passes through the system bus 125 from the storage medium 123 The middle executable instruction for reading simultaneously configuration for executing data processing, can also carry out following steps:
Receive Data Transport Protocol more new information;
Transport protocol more new information is subject to more original communication protocol in the data transmission information based on the data New processing.
Data processing equipment described in the embodiment of the present invention, by communication protocol independently of network environment and/or service logic at Reason, thus communication protocol can need flexible choice according to specific business, therefore can decouple the data packet under user network environment Mode and service logic are realized, so that only needing a set of business realizing that can be adapted to multiple network environment, in a variety of data packet sides Flexible choice between formula, to enhance software to the adaptability of user network, and in the new of reply future customer network generation When variation, it is not necessarily to reconstruction software, only needs iteration.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit;Both it can be located in one place, and may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, which exists When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: movable storage device, read-only deposits Reservoir (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or The various media that can store program code such as CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implemented Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words, The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention. And storage medium above-mentioned includes: that movable storage device, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (15)

1. a kind of data processing method, which is characterized in that the described method includes:
Generate communication data;
Select network data information corresponding with the communication data;
Traversal processing is carried out to the Data Transport Protocol information prestored based on the network data information, obtains transmitting the communication The communication protocol of data;
The communication data is packaged into corresponding communication data in the way of the data packet to match with the communication protocol Packet;
The communication data packet is sent, the communication data packet is transmitted to the terminal for supporting the communication protocol.
2. the method according to claim 1, wherein being transmitted based on the network data information to the data prestored Protocol information carries out traversal processing, obtains the communication protocol for transmitting the communication data, comprising:
The Data Transport Protocol information prestored is parsed, obtain include at least network environment information, communication protocol and The information of corresponding relationship between the network environment information and communication protocol;
When the network data information is the network environment information, according between the network environment information and communication protocol Corresponding relationship, inquiry obtains corresponding to the communication protocol of the network environment information.
3. the method according to claim 1, wherein being transmitted based on the network data information to the data prestored Protocol information carries out traversal processing, obtains the communication protocol for transmitting the communication data, comprising:
The Data Transport Protocol information prestored is parsed, obtains including at least type of service, communication protocol and described The information of corresponding relationship between type of service and communication protocol;
When type of service belonging to the network data information is communication data, according to the type of service and communication protocol it Between corresponding relationship, inquiry obtains corresponding to the communication protocol of the type of service.
4. the method according to claim 1, wherein the method also includes:
When the corresponding network data information of the communication data switches to the second network data information from first network data information When, traversal processing is carried out to the Data Transport Protocol information prestored according to the second network data information;
Inquiry obtains transmitting the new communication protocol of the communication data from the Data Transport Protocol information;
The communication data is packaged into corresponding communication in the way of the data packet to match with the new communication protocol The communication data packet is sent after data packet.
5. the method according to claim 1, wherein described sealed using the data to match with the communication protocol The communication data is packaged into corresponding communication data packet by packet mode, comprising:
The communication data is routed in protocol stack set in protocol stack corresponding with the communication protocol;
The communication data is packaged into corresponding communication data packet according to the protocol stack format of the protocol stack.
6. according to the method described in claim 5, it is characterized in that, before generating communication data, further includes:
Protocol stack set is set, and the protocol stack set includes at least one of publicly-owned protocol stack and proprietary protocol stack protocol stack.
7. according to the method described in claim 5, it is characterized in that, the method also includes:
If there is no corresponding with one or more communication protocols that the communication data uses are transmitted in the protocol stack set Protocol stack then adds the protocol stack of missing in the protocol stack set.
8. method according to any one of claims 1 to 7, which is characterized in that the method also includes:
Receive Data Transport Protocol more new information;
Transport protocol more new information is subject at update original communication protocol in the data transmission information based on the data Reason.
9. a kind of data processing equipment, which is characterized in that described device includes: generation module, detection module, processing module, envelope Die-filling piece and sending module;
The generation module, for generating communication data;
The matching module, for selecting network data information corresponding with the communication data;
The processing module, for being carried out at traversal based on the network data information to the Data Transport Protocol information prestored Reason, obtains the communication protocol for transmitting the communication data;
The package module, for being encapsulated the communication data in the way of the data packet to match with the communication protocol At corresponding communication data packet;
The communication data packet is transmitted to for sending the communication data packet and supports the communication by the sending module The terminal of agreement.
10. device according to claim 9, which is characterized in that
The processing module is also used to switch when the corresponding network data information of the communication data from first network data information When to the second network data information, the Data Transport Protocol information prestored is carried out at traversal according to the second network data information Reason;Inquiry obtains transmitting the new communication protocol of the communication data from the Data Transport Protocol information;Using with it is described The communication data is packaged into after corresponding communication data packet by the data packet mode that new communication protocol matches sends institute State communication data packet.
11. device according to claim 9, which is characterized in that the package module includes routing unit and encapsulation unit;
The routing unit, for the communication data to be routed to agreement corresponding with the communication protocol in protocol stack set In stack;
The encapsulation unit, for the communication data to be packaged into corresponding communication according to the protocol stack format of the protocol stack Data packet.
12. device according to claim 11, which is characterized in that described device further includes setup module;
The setup module, for protocol stack set to be arranged, the protocol stack set includes publicly-owned protocol stack and proprietary protocol stack At least one of protocol stack.
13. device according to claim 11, which is characterized in that
The processing module, if be also used in the protocol stack set there is no with one for transmitting that the communication data uses or The corresponding protocol stack of multiple communication protocols, then add the protocol stack of missing in the protocol stack set.
14. according to the described in any item devices of claim 9 to 13, which is characterized in that described device further includes receiving module;
The receiving module, for receiving data transport protocol more new information;
The processing module, be also used to based on the data transport protocol more new information to original in the data transmission information Communication protocol is subject to update processing.
15. a kind of data processing equipment, which is characterized in that the data processing equipment includes:
Memory, for storing the computer program that can be run on a processor;
Processor when for running the computer program, is executed such as the step of any one of claim 1 to 8 the method.
CN201710532715.5A 2017-07-03 2017-07-03 Data processing method and data processing device Active CN109218261B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710532715.5A CN109218261B (en) 2017-07-03 2017-07-03 Data processing method and data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710532715.5A CN109218261B (en) 2017-07-03 2017-07-03 Data processing method and data processing device

Publications (2)

Publication Number Publication Date
CN109218261A true CN109218261A (en) 2019-01-15
CN109218261B CN109218261B (en) 2022-06-28

Family

ID=64993355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710532715.5A Active CN109218261B (en) 2017-07-03 2017-07-03 Data processing method and data processing device

Country Status (1)

Country Link
CN (1) CN109218261B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111416845A (en) * 2020-03-12 2020-07-14 腾讯云计算(北京)有限责任公司 Method and device for configuring edge device and storage medium
CN111601285A (en) * 2020-05-19 2020-08-28 江苏徐工工程机械研究院有限公司 Communication method, apparatus, system, and computer-readable storage medium
CN111654545A (en) * 2020-06-03 2020-09-11 湖南工业大学 General analysis method and system for sensor data
CN112509172A (en) * 2020-12-08 2021-03-16 广州优胜汽车科技有限公司 Data transmission method, automobile communication terminal, mobile terminal and readable storage medium
CN112583818A (en) * 2020-12-08 2021-03-30 清华大学 Adaptive transport protocol selection method and device for mobile Web service
CN112784300A (en) * 2021-01-22 2021-05-11 重庆秦嵩科技有限公司 Multi-stage log encryption processing system and method
CN113381999A (en) * 2021-06-08 2021-09-10 杭州昊美科技有限公司 Communication method and device and electronic equipment
CN114024990A (en) * 2021-11-19 2022-02-08 深圳创维智慧科技有限公司 General access method for Internet of things platform, network equipment and readable storage medium
CN114172734A (en) * 2021-12-10 2022-03-11 中国电子科技集团公司第十五研究所 Data processing method and device for complex network communication
CN114785874A (en) * 2022-06-16 2022-07-22 成都中科合迅科技有限公司 Method for providing high-availability transmission channel based on multi-network protocol
CN116437159A (en) * 2023-03-14 2023-07-14 深圳感臻智能股份有限公司 Data processing method, system and medium based on digital television protocol

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8214875B2 (en) * 2004-02-26 2012-07-03 Vmware, Inc. Network security policy enforcement using application session information and object attributes
CN102958105A (en) * 2012-10-23 2013-03-06 大唐软件技术股份有限公司 Internet of things terminal access method and device
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
CN104125208A (en) * 2013-10-15 2014-10-29 腾讯科技(深圳)有限公司 Data transmission method and data transmission device
CN104144156A (en) * 2013-05-10 2014-11-12 华为技术有限公司 Message processing method and device
CN104144149A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Transmission processing method and system for data of sensing Internet of Things and gateway
CN104902464A (en) * 2014-03-05 2015-09-09 中国移动通信集团江西有限公司 Method and device for recognizing user behavior
CN106454814A (en) * 2016-11-10 2017-02-22 中国科学院计算技术研究所 GTP tunnel communication system and method
CN106844251A (en) * 2015-12-03 2017-06-13 中兴通讯股份有限公司 Data transmission method and device
US20170170986A1 (en) * 2015-12-10 2017-06-15 Nicira, Inc. Transport protocol task offload emulation to detect chunks of data for communication with a private network

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8214875B2 (en) * 2004-02-26 2012-07-03 Vmware, Inc. Network security policy enforcement using application session information and object attributes
CN102958105A (en) * 2012-10-23 2013-03-06 大唐软件技术股份有限公司 Internet of things terminal access method and device
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
CN104144156A (en) * 2013-05-10 2014-11-12 华为技术有限公司 Message processing method and device
CN104144149A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Transmission processing method and system for data of sensing Internet of Things and gateway
CN104125208A (en) * 2013-10-15 2014-10-29 腾讯科技(深圳)有限公司 Data transmission method and data transmission device
CN104902464A (en) * 2014-03-05 2015-09-09 中国移动通信集团江西有限公司 Method and device for recognizing user behavior
CN106844251A (en) * 2015-12-03 2017-06-13 中兴通讯股份有限公司 Data transmission method and device
US20170170986A1 (en) * 2015-12-10 2017-06-15 Nicira, Inc. Transport protocol task offload emulation to detect chunks of data for communication with a private network
CN106454814A (en) * 2016-11-10 2017-02-22 中国科学院计算技术研究所 GTP tunnel communication system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LINGJUN KONG、WENSHENG XU、JIANZHONG CHA、JIAQING YU、NAN LI: ""A Service Encapsulation Architecture for Engineering Software Based on SOOA"", 《2012 INTERNATIONAL CONFERENCE ON INDUSTRIAL CONTROL AND ELECTRONICS ENGINEERING》 *
叶春明、单洪、马涛、袁泉: ""面向战场通信业务的网络流量建模与仿真"", 《系统仿真学报》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111416845A (en) * 2020-03-12 2020-07-14 腾讯云计算(北京)有限责任公司 Method and device for configuring edge device and storage medium
CN111601285A (en) * 2020-05-19 2020-08-28 江苏徐工工程机械研究院有限公司 Communication method, apparatus, system, and computer-readable storage medium
CN111654545B (en) * 2020-06-03 2023-02-07 湖南工业大学 General analysis method and system for sensor data
CN111654545A (en) * 2020-06-03 2020-09-11 湖南工业大学 General analysis method and system for sensor data
CN112509172A (en) * 2020-12-08 2021-03-16 广州优胜汽车科技有限公司 Data transmission method, automobile communication terminal, mobile terminal and readable storage medium
CN112583818A (en) * 2020-12-08 2021-03-30 清华大学 Adaptive transport protocol selection method and device for mobile Web service
CN112784300A (en) * 2021-01-22 2021-05-11 重庆秦嵩科技有限公司 Multi-stage log encryption processing system and method
CN113381999A (en) * 2021-06-08 2021-09-10 杭州昊美科技有限公司 Communication method and device and electronic equipment
CN114024990A (en) * 2021-11-19 2022-02-08 深圳创维智慧科技有限公司 General access method for Internet of things platform, network equipment and readable storage medium
CN114172734A (en) * 2021-12-10 2022-03-11 中国电子科技集团公司第十五研究所 Data processing method and device for complex network communication
CN114172734B (en) * 2021-12-10 2023-01-20 中国电子科技集团公司第十五研究所 Data processing method and device for complex network communication and computer storage medium
CN114785874A (en) * 2022-06-16 2022-07-22 成都中科合迅科技有限公司 Method for providing high-availability transmission channel based on multi-network protocol
CN116437159A (en) * 2023-03-14 2023-07-14 深圳感臻智能股份有限公司 Data processing method, system and medium based on digital television protocol
CN116437159B (en) * 2023-03-14 2024-08-23 深圳感臻智能股份有限公司 Data processing method, system and medium based on digital television protocol

Also Published As

Publication number Publication date
CN109218261B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN109218261A (en) A kind of data processing method and data processing equipment
US10530657B2 (en) Providing virtual networking functionality for managed computer networks
US9973379B1 (en) Managing integration of external nodes into provided computer networks
US9491002B1 (en) Managing communications involving external nodes of provided computer networks
CN103650424A (en) Implementation method and server of home gateway service function
CN104113879B (en) It is deployed with cloud AC WiFi communication system and communication means
CN103051737A (en) Providing network capability over a converged interconnect fabric
US10389583B2 (en) Implicit traffic engineering
US9356860B1 (en) Managing external communications for provided computer networks
US11184230B2 (en) Transmitting broadcast domain configurations
CN103931162B (en) The method and the network equipment of processing business
CN109151084A (en) File transmitting method and device, system, CGN equipment
CN101361349A (en) Communication module and application program provided with same
CN105208053A (en) Method for realizing load balance, device and load balance service system
Wilkins Designing for Cisco Internetwork Solutions (DESIGN) Foundation Learing Guide
CN110431827A (en) Distributed network gate framework is realized using location identifier separated protocol to be used for 3GPP mobility
CN102215231A (en) Data forwarding method and gateway
Sill Standards underlying cloud networking
US8707100B2 (en) Testing a network using randomly distributed commands
CN109479048A (en) Fuzzy search sequence for information centre's networking (ICN) encoded video stream
CN116074160A (en) Virtual networking public network forwarding method for GPU rendering computing node cluster
CN106534393A (en) Method and system for realizing NAT traversal
Zave et al. The Real Internet Architecture: Past, Present, and Future Evolution
CN116827777B (en) Data acquisition method and network configuration method suitable for n target devices with same IP addresses, electronic device and data acquisition system
CN109756454A (en) The methods, devices and systems of data interaction

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