CN103905147A - Data processing method, sending device, receiving device and communication system - Google Patents

Data processing method, sending device, receiving device and communication system Download PDF

Info

Publication number
CN103905147A
CN103905147A CN201210587925.1A CN201210587925A CN103905147A CN 103905147 A CN103905147 A CN 103905147A CN 201210587925 A CN201210587925 A CN 201210587925A CN 103905147 A CN103905147 A CN 103905147A
Authority
CN
China
Prior art keywords
message
bag
ntb
transmitting apparatus
length information
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
CN201210587925.1A
Other languages
Chinese (zh)
Other versions
CN103905147B (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.)
Leadcore Technology Co Ltd
Original Assignee
Leadcore Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Leadcore Technology Co Ltd filed Critical Leadcore Technology Co Ltd
Priority to CN201210587925.1A priority Critical patent/CN103905147B/en
Publication of CN103905147A publication Critical patent/CN103905147A/en
Application granted granted Critical
Publication of CN103905147B publication Critical patent/CN103905147B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a data processing method, a sending device, a receiving device and a communication system. The data processing method comprises the steps that the sending device sends the operating mode of the sending device to the receiving device, so that the receiving device and the sending device are in the same operating mode, wherein the operating mode refers to the position and length information of an IP message written in an NTB packet of a network configuration management transmission module; the sending device obtains the position and length information of an IP message, sent from the outside, in a Ethernet packet, the position and length information of the IP message are written into the NTB packet, the NTB packet is sent to the receiving device, so that the receiving device receives and analyzes the NTB packet, the position and length information, of the IP message, in the NTB packet is obtained, and the IP message is processed.

Description

Data processing method, transmitting apparatus, receiving equipment and communication system
Technical field
The present invention relates to communication field, relate in particular to a kind of data processing method, transmitting apparatus, receiving equipment and communication system.
Background technology
In communication system, existing LTE (LongTermEvolution, Long Term Evolution) terminal equipment and PC (PersonalComputer) machine/main frame (serve, server) carry out TCP/IP (TransmissionControlProtocol/InternetProtocol, transmission control protocol/Internet Interconnection agreement) when transfer of data, general by USB (UniversalSerialBUS, USB) connect, adopt USB-NCM communication protocol, mainly utilize USB-NCM efficient data to transmit to mate the strict demand of LTE to large data throughout and sequential.
USB-NCM protocol specialized is the network adapter that various use USB connect, and has defined the model (being generally 802.3 Ethernets) of transmission IEEE.802 family network data.USB-NCM agreement is incorporated in multiple Ethernet data bags in single NCM (networkconfigurationmanager, network configuration management) transmission block (NTB), utilizes the disposable transmission of USB-Transfer to improve efficiency of transmission.Its support 16bit(once transmit 64KB) and 32bit(once transmit 4GB) transformat.PC utilizes Ethernet bag to carry TCP/IP data, the 16bit of NTP and the packet format of 32bit are as depicted in figs. 1 and 2, from Fig. 1 and Fig. 2, can find out, by obtaining the NDP(NCMDatagramPoint indicating in NTB build) chained list, can retrieve start address and the length of each Ethernet data bag in NTB, and then access each Ethernet data bag.
In the time carrying out TCP/IP transmission, terminal equipment need to wrap IP in each Ethernet bag from NTB and extract, then sends to high level or protocol layer, and this just need to resolve Ethernet bag.
General ether packet format has two kinds to be respectively 802.3 standards and EthernetII standard at present, as shown in Figure 3,802.3 standard ethernet packet formats are by the destination address of 6 bytes, 6 byte source addresses, 2 byte length fields, Deta bearer are (when packet length less than 64 byte, need extra filling), CRC(CyclicRedundancyCheck, cyclic redundancy check (CRC) code) check field forms.Wherein, for the different agreement data of district office's carrying, in Deta bearer beginning, be generally the LLC-SNAP field of 8 bytes, the protocol data that LLC-SNAP field identification is different, such as IP message, ARP message etc.
EthernetII (the Ethernet second layer) standard ethernet packet format is made up of 6 byte destination addresses, 6 byte source addresses, 2 byte type fields, Deta bearer (when packet length less than 64 byte, need to additionally fill), CRC check field.Wherein, by the different value of type of service field, identify different protocol datas, represent ARP message such as 0x0800 represents IP message, 0x0806.
In sum, as retrieved the IP message in USB-NCMNTB, just need to monitor one by one the type field in each Ethernet bag, for example: if adopt 802.3 forms, need the LLC-SNAP field of verification 8 bytes, if adopt EthernetII form, need the type field of verification 2 bytes, as shown in Figure 4.Visible terminal equipment wraps type checking at every turn, all must cross over the data area of at least 64 bytes, and the data that read 2/8 byte compare.Cause program numerous and diverse, treating capacity is larger.
Summary of the invention
For solving in prior art based in USB-NCM protocol data processing procedure, in the time searching IP message, need to search one by one Ethernet data bag, cause the problem of the wasting of resources, the embodiment of the present invention provides a kind of data processing method, transmitting apparatus, receiving equipment and communication system.
The embodiment of the present invention provides a kind of data processing method, comprising:
The mode of operation of described transmitting apparatus is sent to receiving equipment by transmitting apparatus, so that described receiving equipment and described transmitting apparatus be in same mode of operation, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message;
Described transmitting apparatus obtains position and the length information of IP message in the Ethernet bag of outgoing, and the position of described IP message and length information are write in NTB bag, described NTB bag is sent to described receiving equipment, so that described receiving equipment receives and resolves described NTB bag, obtain position and the length information of the IP message in described NTB bag, and process described IP message.
The embodiment of the present invention also provides a kind of transmitting apparatus, comprising:
The first command process unit, for send the mode of operation of described transmitting apparatus to receiving equipment, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message;
NTB structural unit, for at transmitting apparatus and receiving equipment during in same mode of operation, obtain position and the length information of IP message in the Ethernet bag of outgoing, and the position of described IP message and length information are write in NTB bag, described NTB bag is sent to receiving equipment, so that described receiving equipment obtains position and the length information of the IP message in NTB bag, and process described IP message.
The embodiment of the present invention also provides a kind of receiving equipment, comprising:
The second command process unit, for obtaining the mode of operation of transmitting apparatus, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message;
NTB resolution unit, the described NTB bag sending for receiving and resolve described transmitting apparatus, obtain position and the length information of the IP message comprising in described NTB bag, and send to corresponding module to process this IP message according to the position of IP message and length information.
The embodiment of the present invention also provides a kind of communication system, comprising:
Transmitting apparatus, for consulting with receiving equipment, makes transmitting apparatus and receiving equipment in same mode of operation, and described mode of operation refers to the position and the length information that in described network configuration management transport module NTB bag, comprise Internet protocol IP message; Obtain position and the length information of IP message, and the position of described IP message and length information are write in NTB bag, described NTB bag is sent to receiving equipment;
Receiving equipment, the NTB bag sending for receiving and resolve described transmitting apparatus, obtains position and the length information of the IP message in described NTB bag, and sends to corresponding module to process according to the position of described IP message and length information.
Data processing method, transmitting apparatus, receiving equipment and communication system that the embodiment of the present invention provides, transmitting apparatus is in the time sending NTB bag, together with being write in this NTB bag, the position of IP message and length information issue receiving equipment, receiving equipment is in the time receiving NTB bag like this, can directly get position and the length information of IP message, do not need to detect one by one each Ethernet bag, saved program resource, avoid the problem that causes CPU treatment effeciency low.
Brief description of the drawings
Fig. 1 is the NTB packet format schematic diagram of 16 bit modes in prior art;
Fig. 2 is the NTB packet format schematic diagram of 32 bit modes in prior art;
Fig. 3 is ethernet packet format schematic diagram;
Fig. 4 is the schematic diagram that detects IP message in Ethernet bag;
Fig. 5 is IP message position and the length information area schematic of 16;
Fig. 6 is IP message position and the length information area schematic of 32;
Fig. 7 is the structural representation of the NTB bag of the length and location information that comprises IP message;
Fig. 8 is the structural representation of the communication system that provides of the embodiment of the present invention;
Fig. 9 is the flow chart of the data processing method that provides of the embodiment of the present invention.
Embodiment
The method and apparatus embodiment of the present invention being provided below in conjunction with accompanying drawing is described in detail.
Transmitting apparatus can be PC, server, router, portable wideband wireless device MIFI or panel computer in embodiments of the present invention, and receiving equipment is data card or user terminal so; Or transmitting apparatus can be data card or user terminal, receiving equipment can be PC or server, router, portable wideband wireless device MIFI or panel computer so.
In embodiments of the present invention, transmitting apparatus can utilize the powerful disposal ability of its innernal CPU, the type of the Ethernet bag of each outgoing of instant analysis, if IP message in this Ethernet bag, extract the length information of this IP message, wrap in the position in NTB bag by calculating Ethernet, the positional information of the IP message that can obtain Ethernet bag inside in NTB bag, and the position of this IP message and length information are write in NTB bag, rebuild this NTB bag, then send to receiving equipment to process the NTB bag rebuilding, receiving equipment is being received after NTB bag like this, by resolving position and the length information that can obtain IP message, and this IP message is issued to corresponding unit and process.
It should be noted that: in NTB bag, the region that writes IP message position and length information can be continuous space, as shown in Figure 5 and Figure 6.Fig. 5 has provided the schematic diagram that writes IP message position and length information region in 16 byte N TB bags; Fig. 6 has provided the schematic diagram that writes IP message position and length information region in 32 byte N TB bags.
Because the NDP of NCM packet format is (in NCM agreement, NDP region in wrapping by NTB, describe each Ethernet and wrap in position and the length information in NTB bag) position provides by packet header corresponding field, IP message position and length information region can be placed on the optional position (as long as transmitting apparatus and receiving equipment are observed common agreement) in NTB bag, after can being placed directly in NTB packet header, as shown in Figure 7.Fig. 7 has provided a kind of structure of the NTB bag of the position that comprises IP message and length information, the position of IP message and length information can be placed on the continuum after the head of NTB bag, wherein: index(IPPacket0) represent the positional information of IP message, Length(IPPacket 0) represent the length information of IP message.Because the position of IP message and the area information of length are continuous, in the time being 0 in the position of IP message and area information, represent that this IP message is processed, receiving equipment, in the time being resolved to this IP message, can be comprehended.
In another one embodiment of the present invention, in NTB bag, represent that the mode of IP ENMES also has other modes, as in the time describing the beginning in region, by a special length(length) field, indicate this area size, where finish in the region that can obtain this IP message by calculating.
In another one embodiment of the present invention, the position of IP message and length information also can not be placed in discontinuous region in NTB bag.
In embodiments of the present invention, the request Request order that transmitting apparatus and receiving equipment can define by usb protocol is held consultation.When initial, can give tacit consent under the NCM agreement of the standard of being operated in, the field instruction of agreement in the Request order defining by usb protocol or NTB bag, make transmitting apparatus and receiving equipment under same mode of operation, this mode of operation refers to the position and the length information that in NTB bag, comprise IP message, concrete:
Transmitting apparatus can send USBRequest message to receiving equipment, and this USBRequest message is indicated the mode of operation of described transmitting apparatus,
Receiving equipment receives after this USBRequest message, can obtain the current mode of operation of transmitting apparatus;
Or, at NTB bag, a field is set, the mode of operation of this field instruction transmitting apparatus, receiving equipment receives after NTB bag, can obtain the mode of operation of transmitting apparatus.
Concrete, can carry out self-defining expansion to the USBRequest order of standard, as increased a property value in USB Request order, the position and the length information that in this attribute instruction NTB, comprise IP message.
In embodiments of the present invention, if transmitting apparatus detects non-IP message, can there be two kinds of processing methods:
The first: in NTB, redefine non-IP message index region, receiving equipment adopts low priority task to process this part processing;
The second: due to 3G/LTE(LongTermEvolution, Long Term Evolution) a network transmit IP message, do not transmit other two layer data, receiving equipment can directly be ignored non-IP message as terminal equipment side, address resolution protocol (the AddressResolutionProtocol that communicates by letter relevant for PC side, ARP), DynamicHost arranges agreement (DynamicHostConfigurationProtocol, the non-IP message such as DHCP), at present can be directly replys as PC internal simulation at transmitting apparatus.
Therefore the NTB bag, re-constructing still can be realized the compatibility with existing NCM packet format.
Embodiment mono-:
The embodiment of the present invention provides a kind of and has comprised transmitting apparatus and receiving equipment based on USB-NCM protocol data treatment system, and wherein, transmitting apparatus can comprise USB-NCM improved protocol sending module, and receiving equipment can comprise USB-NCM improved protocol receiver module.
In one embodiment of the invention, transmitting apparatus can be PC, server, router, portable wideband wireless device MIFI or panel computer, and receiving equipment is data card or user terminal so.In another one embodiment of the present invention, transmitting apparatus can be data card or user terminal, and receiving equipment can be PC or server, router, portable wideband wireless device MIFI or panel computer so.
The embodiment of the present invention also provides a kind of communication system, as shown in Figure 8, comprises transmitting apparatus 801 and receiving equipment 802, wherein
Transmitting apparatus 801, for send the mode of operation of transmitting apparatus to receiving equipment 802, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message; Obtain position and the length information of IP message in the Ethernet bag of outgoing, and the position of described IP message and length information are write in NTB bag, described NTB bag is sent to described receiving equipment 802;
Receiving equipment 802, the NTB bag sending for receiving and resolve described transmitting apparatus 801, obtains position and the length information of the IP message in described NTB bag, and sends to corresponding module to process according to the position of described IP message and length information.
In another one embodiment of the present invention, transmitting apparatus 801 sends USB request USBRequest message to described receiving equipment 802, and described USBRequest message is indicated the mode of operation of described transmitting apparatus 801;
Receiving equipment 802 obtains the mode of operation of described transmitting apparatus 801 according to described USBRequest message.
In another one embodiment of the present invention, transmitting apparatus 801 sends NTB bag to receiving equipment 802, the field that comprises instruction transmitting apparatus 801 mode of operations in described NTB bag;
Receiving equipment 802 obtains the mode of operation of described transmitting apparatus 801 according to the field of described transmitting apparatus 801 mode of operations of instruction that comprise in described NTB bag.
In another one embodiment of the present invention, described transmitting apparatus specifically for: detect the type of the Ethernet bag of each outgoing, if described Ethernet bag is IP message, extract the length information of described IP message; The Ethernet that calculates described outgoing wraps in the position in described NTB bag, wraps in the position of the IP message in Ethernet bag in described NTB bag described in the position acquisition in described NTB bag according to described Ethernet.
It should be noted that: in one embodiment of the invention, the IP message in Ethernet bag may have certain skew apart from ethernet packet header.
Therefore, wrap in the position of the IP message in Ethernet bag in described NTB bag described in the position acquisition in described NTB bag according to described Ethernet, comprising:
If this skew exists, the position of IP message in NTB bag equals the position that Ethernet wraps in NTB and adds the side-play amount of IP message in Ethernet bag; Or
If this side-play amount is zero, the position of IP message in NTB bag is just equal to Ethernet and wraps in the position in NTB.
In embodiments of the present invention, transmitting apparatus can comprise USB-NCM improved protocol sending module in theory, and this USB-NCM improved protocol sending module can be divided into USBRequest command process unit and USB-NCM modified model NTB structural unit logically.
USBRequest command process unit for the treatment of standard Request order and the non-standard instruction of various usb protocol definition, for example, is used for consulting IP message position length information area form, the transmission mode that unlatching comprises above-mentioned information area etc. of foregoing description.USB-NCM modified model NTB structural unit, is used for according to the negotiation result of USBRequest command process unit and receiving equipment, constructs specific USB-NCMNTB bag.
In another one embodiment of the present invention, transmitting apparatus 801 comprises command process unit 8011 and NTB structural unit 8012, wherein:
The first command process unit 8011, for the mode of operation of transmitting apparatus is sent to receiving equipment, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message;
NTB structural unit 8012, for at transmitting apparatus and receiving equipment during in same mode of operation, obtain position and the length information of IP message in the Ethernet bag of outgoing, and the position of described IP message and length information are write in NTB bag, described NTB bag is sent to receiving equipment, so that described receiving equipment obtains position and the length information of the IP message in NTB bag, and process described IP message.
In embodiments of the present invention, the first command process unit 8011, specifically for sending USBRequest message to receiving equipment, described USBRequest message is indicated the mode of operation of described transmitting apparatus, and described receiving equipment is known the mode of operation of transmitting apparatus according to this USBRequest message; Or
Described NTB structural unit 8012, specifically for write the field that represents described transmitting apparatus mode of operation in described NTB bag, receiving equipment just can obtain according to this field the mode of operation of transmitting apparatus.
In another one embodiment of the present invention, described NTB structural unit 8012, specifically for detecting the type of Ethernet bag of each outgoing, if described Ethernet bag is IP message, extracts the length information of described IP message; The Ethernet that calculates described outgoing wraps in the position in described NTB bag, wraps in the position of the IP message in Ethernet bag in described NTB bag described in the position acquisition in described NTB bag according to described Ethernet.
It should be noted that: in one embodiment of the invention, IP message in Ethernet bag may have certain skew apart from ethernet packet header, therefore, wrap in the position of the IP message in Ethernet bag in described NTB bag described in the position acquisition in described NTB bag according to described Ethernet, comprising:
If this skew exists, the position of IP message in NTB bag equals the position that Ethernet wraps in NTB and adds the side-play amount of IP message in Ethernet bag; Or
If this side-play amount is zero, the position of IP message in NTB bag is just equal to Ethernet and wraps in the position in NTB.
In another one embodiment of the present invention, USB-NCM improved protocol receiver module is positioned at receiving equipment, can comprise logically USBRequest command process unit and USB-UCM modified model NTB resolution unit.USBRequest command process unit is for the treatment of standard Request order and the non-standard instruction of various usb protocol definition, such as being used for consulting IP message position length information area form, the transmission mode that unlatching comprises above-mentioned information area etc. of foregoing description.USB-NCM modified model NTB resolution unit, is used for according to the negotiation result of USBRequest command process unit and transmitting apparatus side, resolves specific USB-NCMNTB bag.
In another one embodiment of the present invention, receiving equipment 802 comprises command unit 8021 and NTB resolution unit 8022, wherein:
The second command process unit 8021, for obtaining the mode of operation of transmitting apparatus, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message;
NTB resolution unit 8022, the NTB bag sending for receiving and resolve described transmitting apparatus, obtain position and the length information of the IP message comprising in described NTB bag, and send to corresponding module to process this IP message according to the position of IP message and length information.
Wherein, the second command process unit 8021, be used for receiving described transmitting apparatus and send USB Request message, described USBRequest message is indicated the mode of operation of described transmitting apparatus, obtains the mode of operation of described transmitting apparatus according to described USBRequest message;
Or
Described NTB resolution unit 8022, for resolving described NTB bag, obtains the mode of operation of described transmitting apparatus according to the just field of transmitting apparatus mode of operation comprising in described NTB bag.
In a preferred embodiment of the invention, USB-NCM improved protocol sending module is arranged on the inside of PC or server, preferred, and the network interface card that can be arranged on PC side drives inner; It is non intelligent that USB-NCM improved protocol receiver module can be arranged on UE side data card terminal/smart mobile phone/FeaturePhone() interior of mobile phone, preferably, can be arranged on the platform inside of data card terminal.
Communication system, transmitting apparatus and receiving equipment that the embodiment of the present invention provides, transmitting apparatus is in the time sending NTB bag, together with being write in this NTB bag, the position of IP message and length information issue receiving equipment, receiving equipment is in the time receiving NTB bag like this, can directly get position and the length information of IP message, do not need to detect one by one each Ethernet bag, saved program resource, avoid the problem that causes CPU treatment effeciency low.
Embodiment bis-
It is a kind of based on USB-NCM protocol data processing method that the embodiment of the present invention provides, be applied in embodiment mono-based in USB-NCM protocol data treatment system, as shown in Figure 9, comprising:
901, the mode of operation of described transmitting apparatus is sent to receiving equipment by transmitting apparatus, so that described receiving equipment and described transmitting apparatus be in same mode of operation, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message;
902, transmitting apparatus obtains position and the length information of IP message in the Ethernet bag of outgoing, and the position of described IP message and length information are write in NTB bag, described NTB bag is sent to described receiving equipment, so that described receiving equipment receives and resolves described NTB bag, obtain position and the length information of the IP message in described NTB bag, and process described IP message.
In one embodiment of the invention, described transmitting apparatus obtains position and the length information of IP message in the Ethernet bag of outgoing, comprising:
Described transmitting apparatus detects the type of the Ethernet bag of each outgoing, if described Ethernet bag is IP message, extracts the length information of described IP message;
The Ethernet that calculates described outgoing wraps in the position in described NTB bag, wraps in the position of the IP message in Ethernet bag in described NTB bag described in the position acquisition in described NTB bag according to described Ethernet.
It should be noted that: in one embodiment of the invention, IP message in Ethernet bag may have certain skew apart from ethernet packet header, therefore, wrap in the position of the IP message in Ethernet bag in described NTB bag described in the position acquisition in described NTB bag according to described Ethernet, comprising:
If this skew exists, the position of IP message in NTB bag equals the position that Ethernet wraps in NTB and adds the side-play amount of IP message in Ethernet bag; Or
If this side-play amount is zero, the position of IP message in NTB bag is just equal to Ethernet and wraps in the position in NTB.
In another one embodiment of the present invention, receiving equipment receives after described NTB bag, if find that there is untreated IP message position and length information, according to the position of described IP message and length information, described IP message is sent to corresponding module and process.
In another one embodiment of the present invention, described untreated IP message position and length information comprise the position of described IP message and length information at least one are non-vanishing.
In another one embodiment of the present invention, described transmitting apparatus and receiving equipment are held consultation, and the mode of operation of described transmitting apparatus is notified to described receiving equipment, comprising:
Described transmitting apparatus sends USB request USBRequest message to described receiving equipment, and described USBRequest message is indicated the mode of operation of described transmitting apparatus; Or
In described NTB bag, comprise the field of indicating described transmitting apparatus mode of operation.
The embodiment of the present invention is completely corresponding with embodiment mono-and embodiment bis-, there is no in embodiments of the present invention the part of detailed description, can be with reference to the description in embodiment mono-and embodiment bis-.
The data processing method that the embodiment of the present invention provides, transmitting apparatus is in the time sending NTB bag, together with being write in this NTB bag, the position of IP message and length information issue receiving equipment, receiving equipment is in the time receiving NTB bag like this, can directly get position and the length information of IP message, do not need to detect one by one each Ethernet bag, saved program resource, avoid the problem that causes CPU treatment effeciency low.
More than some execution modes preferably of the embodiment of the present invention, anyone is under the prerequisite of skilled, do not deviating from spirit of the present invention and do not exceeding under the prerequisite of the technical scope the present invention relates to, the details that can describe the present invention is done various supplementing and amendment.Protection scope of the present invention is not limited to the cited scope of embodiment, and protection scope of the present invention is as the criterion with claim.

Claims (15)

1. a data processing method, is characterized in that, comprising:
The mode of operation of described transmitting apparatus is sent to receiving equipment by transmitting apparatus, so that described receiving equipment and described transmitting apparatus be in same mode of operation, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message;
Described transmitting apparatus obtains position and the length information of IP message in the Ethernet bag of outgoing, and the position of described IP message and length information are write in NTB bag, described NTB bag is sent to described receiving equipment, so that described receiving equipment receives and resolves described NTB bag, obtain position and the length information of the IP message in described NTB bag, and process described IP message.
2. the method for claim 1, is characterized in that: described transmitting apparatus obtains position and the length information of IP message in the Ethernet bag of outgoing, comprising:
Described transmitting apparatus detects the type of the Ethernet bag of each outgoing, if described Ethernet bag is IP message, extracts the length information of described IP message;
The Ethernet that calculates described outgoing wraps in the position in described NTB bag, wraps in the position of the IP message in Ethernet bag in described NTB bag described in the position acquisition in described NTB bag according to described Ethernet.
3. the method for claim 1, is characterized in that: so that described receiving equipment obtains position and the length information of the IP message in described NTB bag, and processes described IP message, comprising:
Described receiving equipment receives after described NTB bag, if find that there is untreated IP message position and length information, according to the position of described IP message and length information, described IP message is sent to corresponding module and processes.
4. method as claimed in claim 3, is characterized in that: described untreated IP message position and length information comprise the position of described IP message and length information at least one is non-vanishing.
5. the method as described in as arbitrary in claim 1 to 4, is characterized in that: described transmitting apparatus notifies the mode of operation of described transmitting apparatus to described receiving equipment, comprising:
Described transmitting apparatus sends USB request USBRequest message to described receiving equipment, and described USBRequest message is indicated the mode of operation of described transmitting apparatus; Or
In described NTB bag, comprise the field of indicating described transmitting apparatus mode of operation.
6. a transmitting apparatus, is characterized in that, comprising:
The first command process unit, for send the mode of operation of described transmitting apparatus to receiving equipment, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message;
NTB structural unit, for at described transmitting apparatus and receiving equipment during in same mode of operation, obtain position and the length information of IP message in the Ethernet bag of outgoing, and the position of described IP message and length information are write in NTB bag, described NTB bag is sent to receiving equipment, so that described receiving equipment obtains position and the length information of the IP message in NTB bag, and process described IP message.
7. transmitting apparatus as claimed in claim 6, is characterized in that:
Described the first command process unit, specifically for send USB request USBRequest message to receiving equipment, described USBRequest message is indicated the mode of operation of described transmitting apparatus.
8. transmitting apparatus as claimed in claim 6, is characterized in that:
Described NTB structural unit, specifically for writing the field of the described transmitting apparatus mode of operation of instruction in described NTB bag.
9. the transmitting apparatus as described in as arbitrary in claim 6 to 8, is characterized in that:
Described NTB structural unit, specifically for detecting the type of Ethernet bag of each outgoing, if described Ethernet bag is IP message, extracts the length information of described IP message; The Ethernet that calculates described outgoing wraps in the position in described NTB bag, wraps in the position of the IP message in Ethernet bag in described NTB bag described in the position acquisition in described NTB bag according to described Ethernet.
10. a receiving equipment, is characterized in that, comprising:
The second command process unit, for obtaining the mode of operation of transmitting apparatus, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message;
NTB resolution unit, the described NTB bag sending for receiving and resolve described transmitting apparatus, obtain position and the length information of the IP message comprising in described NTB bag, and send to corresponding module to process this IP message according to the position of IP message and length information.
11. receiving equipments as claimed in claim 10, is characterized in that:
Described the second command process unit, the USB request USBRequest message sending specifically for receiving described transmitting apparatus, described USBRequest message is indicated the mode of operation of described transmitting apparatus, obtains the mode of operation of described transmitting apparatus according to described USBRequest message;
Or
Described NTB resolution unit, specifically for resolving described NTB bag, obtains the mode of operation of described transmitting apparatus according to the field of the described transmitting apparatus mode of operation of instruction comprising in described NTB bag.
12. 1 kinds of communication systems, is characterized in that, comprising:
Transmitting apparatus, for the mode of operation of described transmitting apparatus is sent to receiving equipment, described mode of operation refers to the position and the length information that in network configuration management transport module NTB bag, write Internet protocol IP message; Obtain position and the length information of IP message in the Ethernet bag of outgoing, and the position of described IP message and length information are write in NTB bag, described NTB bag is sent to described receiving equipment;
Receiving equipment, the NTB bag sending for receiving and resolve described transmitting apparatus, obtains position and the length information of the IP message in described NTB bag, and sends to corresponding module to process according to the position of described IP message and length information.
13. communication systems as claimed in claim 12, is characterized in that,
Described transmitting apparatus is specifically for sending USB request USBRequest message to described receiving equipment, described USBRequest message is indicated the mode of operation of described transmitting apparatus;
Described receiving equipment is specifically for obtaining the mode of operation of described transmitting apparatus according to described USBRequest message.
14. communication systems as claimed in claim 12, is characterized in that:
Described transmitting apparatus, specifically for send NTB bag to described receiving equipment, comprises the field of indicating described transmitting apparatus mode of operation in described NTB bag;
Described receiving equipment is specifically for obtaining the mode of operation of described transmitting apparatus according to the field of the described transmitting apparatus mode of operation of instruction comprising in described NTB bag.
15. communication systems as described in as arbitrary in claim 12 to 14, is characterized in that: described transmitting apparatus, specifically for detecting the type of Ethernet bag of each outgoing, if described Ethernet bag is IP message, extracts the length information of described IP message; The Ethernet that calculates described outgoing wraps in the position in described NTB bag, wraps in the position of the IP message in Ethernet bag in described NTB bag described in the position acquisition in described NTB bag according to described Ethernet.
CN201210587925.1A 2012-12-28 2012-12-28 Data processing method, sending device, receiving device and communication system Active CN103905147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210587925.1A CN103905147B (en) 2012-12-28 2012-12-28 Data processing method, sending device, receiving device and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210587925.1A CN103905147B (en) 2012-12-28 2012-12-28 Data processing method, sending device, receiving device and communication system

Publications (2)

Publication Number Publication Date
CN103905147A true CN103905147A (en) 2014-07-02
CN103905147B CN103905147B (en) 2017-03-22

Family

ID=50996314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210587925.1A Active CN103905147B (en) 2012-12-28 2012-12-28 Data processing method, sending device, receiving device and communication system

Country Status (1)

Country Link
CN (1) CN103905147B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656853A (en) * 2016-12-27 2017-05-10 盛科网络(苏州)有限公司 Method and apparatus for extracting data stream information from Ethernet chip in low delay mode
CN107851072A (en) * 2015-07-23 2018-03-27 索尼公司 Receiving device, send equipment and data processing method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020124108A1 (en) * 2001-01-04 2002-09-05 Terrell William C. Secure multiprotocol interface
CN1913470A (en) * 2006-06-30 2007-02-14 华为技术有限公司 Information transmitting method and system between Ethernet equipment
CN101650686A (en) * 2009-05-19 2010-02-17 上海闻泰电子科技有限公司 Developing and using method of intelligent mobile phone based on Ethernet Over USB
CN101795146A (en) * 2010-03-10 2010-08-04 北京航空航天大学 Multi-frequency-band cognitive network node used for frequency spectrum monitoring
CN102474546A (en) * 2009-08-10 2012-05-23 摩托罗拉解决方案公司 Methods and apparatus for communicating a push-to-talk state to a communication device
CN102572585A (en) * 2010-12-08 2012-07-11 中国科学院声学研究所 Method and system for high speed and parallel data reception and processing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020124108A1 (en) * 2001-01-04 2002-09-05 Terrell William C. Secure multiprotocol interface
CN1913470A (en) * 2006-06-30 2007-02-14 华为技术有限公司 Information transmitting method and system between Ethernet equipment
CN101650686A (en) * 2009-05-19 2010-02-17 上海闻泰电子科技有限公司 Developing and using method of intelligent mobile phone based on Ethernet Over USB
CN102474546A (en) * 2009-08-10 2012-05-23 摩托罗拉解决方案公司 Methods and apparatus for communicating a push-to-talk state to a communication device
CN101795146A (en) * 2010-03-10 2010-08-04 北京航空航天大学 Multi-frequency-band cognitive network node used for frequency spectrum monitoring
CN102572585A (en) * 2010-12-08 2012-07-11 中国科学院声学研究所 Method and system for high speed and parallel data reception and processing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107851072A (en) * 2015-07-23 2018-03-27 索尼公司 Receiving device, send equipment and data processing method
CN106656853A (en) * 2016-12-27 2017-05-10 盛科网络(苏州)有限公司 Method and apparatus for extracting data stream information from Ethernet chip in low delay mode
CN106656853B (en) * 2016-12-27 2019-08-16 盛科网络(苏州)有限公司 The method and device of traffic flow information is extracted under Ethernet chip low-delay mode

Also Published As

Publication number Publication date
CN103905147B (en) 2017-03-22

Similar Documents

Publication Publication Date Title
EP2985968A1 (en) Method and apparatus for processing messages
CN102300256B (en) Method and device for feeding back header compression and feedback information
WO2018165113A1 (en) Dynamic header compression for constrained networks
CN102891796B (en) Mining intelligent transmission gateway
CN111294235B (en) Data processing method, device, gateway and readable storage medium
CN104079488A (en) Ethernet two-layer head compression based transmission device and method
CN103312661A (en) Method and device for service accessing
CN207766561U (en) A kind of system of control terminal and equipment access network
US20180234535A1 (en) Method and apparatus for communication
CN103647706A (en) Self-adaptation protocol communication gateway and communication platform
CN104580187B (en) A method of realizing that the external device of different MODULEBUS agreements is interacted with server
CN107862074A (en) Big data quantity parameter rapid read-write method
KR101188507B1 (en) The device and method for relaying heterogeneous netnork and user terminal using the same based on technology of relaying network and browsing things of internet of things based on ip using web platform
CN103747061B (en) A kind of dynamic environment monitoring system and its operation method of supporting many networkings to access
CN101826997A (en) Communication method of newly accessed intelligent equipment, device and monitoring system
CN101119374B (en) iSCSI communication method and corresponding initiation equipment and objective equipment
CN103905147A (en) Data processing method, sending device, receiving device and communication system
CN102255800A (en) Method for converting data format between IP (Internet Protocol) data packages on CAN (Control Area Network) bus and CAN messages
TWI735633B (en) Data transmission method, equipment, device and system
CN105515995A (en) Message processing method and apparatus, and flow table generation method and apparatus
CN112399446A (en) Edge gateway communication method, device, computer equipment and storage medium
CN107426263A (en) Sending, receiving method and device, the electronic equipment of packet
CN102480463B (en) Network interaction method and network interaction system
Kuang et al. A Modbus Protocol Stack Compatible with RTU/TCP Frames and Embedded Application
CN103997508A (en) Method and apparatus for concentrated fixture storage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20140702

Assignee: Shanghai Li Ke Semiconductor Technology Co., Ltd.

Assignor: Leadcore Technology Co., Ltd.

Contract record no.: 2018990000159

Denomination of invention: Data processing method, sending device, receiving device and communication system

Granted publication date: 20170322

License type: Common License

Record date: 20180615