CN105681101B - A kind of data package processing method and device - Google Patents

A kind of data package processing method and device Download PDF

Info

Publication number
CN105681101B
CN105681101B CN201610113752.8A CN201610113752A CN105681101B CN 105681101 B CN105681101 B CN 105681101B CN 201610113752 A CN201610113752 A CN 201610113752A CN 105681101 B CN105681101 B CN 105681101B
Authority
CN
China
Prior art keywords
data packet
processing
transformed
address
pending
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.)
Active
Application number
CN201610113752.8A
Other languages
Chinese (zh)
Other versions
CN105681101A (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.)
Beijing Runke General Technology Co Ltd
Original Assignee
Beijing Runke General 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 Beijing Runke General Technology Co Ltd filed Critical Beijing Runke General Technology Co Ltd
Priority to CN201610113752.8A priority Critical patent/CN105681101B/en
Publication of CN105681101A publication Critical patent/CN105681101A/en
Application granted granted Critical
Publication of CN105681101B publication Critical patent/CN105681101B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design

Abstract

The invention discloses a kind of data package processing method and devices, obtain pending data packet;Address resolution is carried out to pending data packet, obtains the source address and destination address of pending data packet;When the source address of pending data packet and destination address meet preset address matching rule, protocol conversion process is carried out to pending data packet, generates transformed data packet, and transformed data packet is sent to processing data packets queue and is cached;Signal resolution is synchronized to transformed data packet, the processing moment of transformed data packet is obtained, and when reaching at the processing moment, generates synchronous control signal, based on synchronous control signal, control data bag handles the processing of the transformed data packet in queue.The above method and device can realize the half network real-time simulation in kind based on OMNeT++ network (WSN) emulation systems.

Description

A kind of data package processing method and device
Technical field
The present invention relates to semi-true object emulation technology fields, and more specifically, it relates to a kind of data package processing method and dresses It sets.
Background technology
HWIL simulation is that material object is added in software simulated environment, using virtualization technology some moulds in emulation testing Block software realization, and by the hard-wired technology of important module, input can reduced by HWIL simulation While approaching to reality result as far as possible.And half-practicality network simulation is realization of the HWIL simulation on Network Simulation Software, Outside network device is mapped as the special joint in Network Simulation Software or equipment, and carries out network using truthful data and imitates True experiment.
When half-and-half network system in kind is emulated, if having time sensitivity element (such as propagation delay time, processing delay, Time synchronization protocol etc.) the entire analogue system of intervention, must be requested that simulation time scale is identical as physical system time scale, this Kind emulation is known as real-time simulation.Real-time emulation system requires real time coordination to synchronize, and simulation time and natural time is made to be consistent.
OMNeT++ network (WSN) emulation systems are a outstanding Network Simulation Softwares of Simulcraft companies exploitation, can be with For simulation communication agreement, computer network, parallel system and multicomputer system etc., current nearly all network can be realized Interconnection between the basic model of object, and complicated network communication and topological structure is made to obtain simple correctly emulation.But OMNeT++ Network Simulation Softwares more lack and are directed to but without developing dedicated external interface for half-practicality network simulation at present The HWIL simulation interface of real-time emulation.
Therefore, there is an urgent need to develop a kind of data package processing method and devices at present, imitative based on OMNeT++ networks to realize Half network real-time simulation in kind of true system.
Invention content
In view of this, the invention discloses a kind of data package processing method and device, can realize based on OMNeT++ networks The network real-time simulation in kind of the half of analogue system.
To achieve the above object, the present invention provides the following technical solutions:
A kind of data package processing method, the method includes:
Obtain pending data packet;
Address resolution is carried out to the pending data packet, obtains the source address and purpose of the pending data packet Address;
Judge whether the source address of the pending data packet and destination address meet preset address matching rule;
It is right when the source address of the pending data packet and destination address meet the preset address matching rule The pending data packet carries out protocol conversion process, generates transformed data packet, and by the transformed data packet Processing data packets queue is sent to be cached;
Signal resolution is synchronized to the transformed data packet, when obtaining the processing of the transformed data packet It carves, and when reaching at the processing moment, generates synchronous control signal;
Based on the synchronous control signal, the place of the transformed data packet in the processing data packets queue is controlled Reason.
Preferably, the pending data packet is the emulation data packet from mapping node;
The transformed data packet is to be sent to the solid data packet of terminal device in kind.
Preferably, described that protocol conversion process is carried out to the pending data packet, transformed data packet is generated, and The transformed data packet is sent to processing data packets queue to cache, including:
Protocol conversion process is carried out to the emulation data packet, the emulation data packet is carried out according to ethernet frame format Encapsulation, is converted into solid data packet, and the solid data packet is sent to data packet transmit queue and is cached.
Preferably, described that signal resolution is synchronized to the transformed data packet, obtain the transformed data The processing moment of packet, and when reaching at the processing moment, synchronous control signal is generated, including:
Signal resolution is synchronized to the solid data packet, obtains the delivery time of the solid data packet, and in institute When stating delivery time arrival, the synchronous control signal is generated;
It is described to be based on the synchronous control signal, control the transformed data packet in the processing data packets queue Processing, including:
Based on the synchronous control signal, the solid data packet in the data packet transmit queue is sent to by control Terminal device in kind.
Preferably, the pending data packet is the solid data packet from terminal device in kind;
The transformed data packet is to receive to the emulation data packet of mapping node.
Preferably, described that protocol conversion process is carried out to the pending data packet, transformed data packet is generated, and The transformed data packet is sent to processing data packets queue to cache, including:
Protocol conversion process is carried out to the solid data packet, the solid data packet is decapsulated, is converted into imitating True data packet, and the emulation data packet is sent to data packet receiving queue and is cached.
Preferably, described that signal resolution is synchronized to the transformed data packet, obtain the transformed data The processing moment of packet, and when reaching at the processing moment, synchronous control signal is generated, including:
Signal resolution is synchronized to the emulation data packet, obtains the time of reception of the emulation data packet, and in institute When stating time of reception arrival, the synchronous control signal is generated;
It is described to be based on the synchronous control signal, control the transformed data packet in the processing data packets queue Processing, including:
Based on the synchronous control signal, control by the emulation data packet in the data packet receiving queue receive to Mapping node.
Preferably, the method further includes:
When the source address of the pending data packet and destination address are unsatisfactory for preset address matching rule, abandon The pending data packet.
Preferably, the preset address matching rule be the preset mapping node and the terminal device in kind it Between address translation rule.
A kind of data packet processing, including:
Data packet acquisition module, for obtaining pending data packet;
Address resolution module obtains the pending number for carrying out address resolution to the pending data packet According to the source address and destination address of packet;
Mapping block is matched, it is default whether source address and destination address for judging the pending data packet meet Address matching rule;
Protocol conversion module, for when the source address and destination address of the pending data packet meet it is described preset When address matching rule, protocol conversion process is carried out to the pending data packet, generates transformed data packet, and by institute It states transformed data packet and is sent to processing data packets queue and cached;
Synchronization control module, for synchronizing signal resolution to the transformed data packet, after obtaining the conversion Processing moment of data packet generate synchronous control signal and when reaching at the processing moment;Believed based on the synchronous control Number, control the processing of the transformed data packet in the processing data packets queue.
It can be seen via above technical scheme that compared with prior art, the invention discloses a kind of data package processing method, Obtain pending data packet;Address resolution is carried out to the pending data packet, obtains the pending data packet Source address and destination address;Whether the source address and destination address for judging the pending data packet meet preset address With rule;When the source address of the pending data packet and destination address meet preset address matching rule, to described Pending data packet carries out protocol conversion process, generates transformed data packet, and the transformed data packet is sent It is cached to processing data packets queue;Signal resolution is synchronized to the transformed data packet, after obtaining the conversion Processing moment of data packet generate synchronous control signal and when reaching at the processing moment, believed based on the synchronous control Number, control the processing of the transformed data packet in the processing data packets queue.The above method can be realized and is based on The network real-time simulation in kind of the half of OMNeT++ network (WSN) emulation systems.Correspondingly, the invention also discloses the dresses for realizing the above method It sets.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of data package processing method disclosed by the embodiments of the present invention;
Fig. 2 is a kind of emulation data packet sending method flow diagram disclosed by the embodiments of the present invention;
Fig. 3 is a kind of solid data packet method of reseptance flow diagram disclosed by the embodiments of the present invention;
Fig. 4 is a kind of structural schematic diagram of data packet processing disclosed by the embodiments of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Term " comprising " and " having " in description and claims of this specification and above-mentioned attached drawing and they Any deformation, it is intended that it includes so as to a series of process comprising units, method, system, product or to set to cover non-exclusive It is standby to be not necessarily limited to those units, but may include not listing clearly or solid for these processes, method, product or equipment The other units having.
By background technology it is found that there is an urgent need to develop a kind of data package processing method and devices at present, it is based on realizing The network real-time simulation in kind of the half of OMNeT++ network (WSN) emulation systems.
For this purpose, the invention discloses a kind of data package processing method, pending data packet is obtained;To described pending Data packet carries out address resolution, obtains the source address and destination address of the pending data packet;Judge described pending Whether the source address and destination address of data packet meet preset address matching rule;When the source of the pending data packet When location and destination address meet preset address matching rule, protocol conversion process is carried out to the pending data packet, it is raw At transformed data packet, and the transformed data packet is sent to processing data packets queue and is cached;To described turn Data packet after changing synchronizes signal resolution, obtains the processing moment of the transformed data packet, and in the processing Be carved into up to when, generate synchronous control signal, be based on the synchronous control signal, control described in the processing data packets queue The processing of transformed data packet.The above method can realize that half network in kind based on OMNeT++ network (WSN) emulation systems is real-time Emulation.Correspondingly, the invention also discloses the devices for realizing the above method.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
Embodiment one
Attached drawing 1 is please referred to, is a kind of flow diagram of data package processing method disclosed by the embodiments of the present invention, this method It is realized, is included the following steps based on OMNeT++ network (WSN) emulation systems:
S101:Obtain pending data packet.
It should be noted that pending data packet is emulation data packet to be sent or solid data to be received Packet.The emulation data packet comes from mapping node, and the solid data packet comes from terminal device in kind.The mapping node is imitative Dummy node in true network is connect with the terminal device in kind by HWIL simulation interface.
S102:Address resolution is carried out to the pending data packet, obtains the source address of the pending data packet And destination address.
S103:Judge whether the source address of the pending data packet and destination address meet preset address matching rule Then;When the source address of the pending data packet and destination address meet preset address matching rule, execution S104, S105 and S106, when the source address of the pending data packet and destination address are unsatisfactory for preset address matching rule, Execute S107.
It should be noted that the preset address matching rule is the preset mapping node and the terminal in kind Address translation rule between equipment.
S104:Protocol conversion process is carried out to the pending data packet, generates transformed data packet, and will be described Transformed data packet is sent to processing data packets queue and is cached.
S105:Signal resolution is synchronized to the transformed data packet, obtains the place of the transformed data packet The moment is managed, and when reaching at the processing moment, generates synchronous control signal;
S106:Based on the synchronous control signal, the transformed data in the processing data packets queue are controlled The processing of packet.
S107:Abandon the pending data packet.
Present embodiment discloses a kind of data package processing methods, obtain pending data packet;To the pending number Address resolution is carried out according to packet, obtains the source address and destination address of the pending data packet;Judge the pending number Whether meet preset address matching rule according to the source address and destination address of packet;When the source address of the pending data packet When meeting preset address matching rule with destination address, protocol conversion process is carried out to the pending data packet, is generated Transformed data packet, and the transformed data packet is sent to processing data packets queue and is cached;To the conversion Data packet afterwards synchronizes signal resolution, obtains the processing moment of the transformed data packet, and at the processing moment When arrival, synchronous control signal is generated, the synchronous control signal is based on, controls described turn in the processing data packets queue The processing of data packet after changing, the above method can realize that half network in kind based on OMNeT++ network (WSN) emulation systems is imitated in real time Very.
On the basis of the above embodiment 1, when pending data packet is the emulation data packet from mapping node, institute It is when being sent to the solid data packet of terminal device in kind to state transformed data packet, and processing data packets can be considered emulation data The transmission of packet.Attached drawing 2 is please referred to, is a kind of emulation data packet sending method flow diagram disclosed by the embodiments of the present invention, it should Method includes the following steps:
S201:Obtain the emulation data packet from mapping node.
S202:Address resolution is carried out to the emulation data packet, obtains source address and the destination of the emulation data packet Location.
S203:Judge whether the source address of the emulation data packet and destination address meet preset address matching rule; When it is described emulation data packet source address and destination address meet preset address matching rule when, execute S204, S205 and S206;When the source address of the emulation data packet and destination address are unsatisfactory for preset address matching rule, S207 is executed.
S204:Protocol conversion process is carried out to the emulation data packet, by the emulation data packet according to ethernet frame lattice Formula is packaged, and is converted into solid data packet, and the solid data packet is sent to data packet transmit queue and is cached.
S205:Signal resolution is synchronized to the solid data packet, obtains the delivery time of the solid data packet, and When the delivery time reaches, the synchronous control signal is generated.
S206:Based on the synchronous control signal, control the solid data packet in the data packet transmit queue It is sent to terminal device in kind.
S207:Abandon the emulation data packet.
On the basis of the above embodiment 1, when the pending data packet is the entity number from terminal device in kind According to packet, the transformed data packet is when receiving to the emulation data packet of mapping node, and processing data packets can be considered entity The reception of data packet.Attached drawing 3 is please referred to, for a kind of flow signal of solid data packet method of reseptance disclosed by the embodiments of the present invention Figure, this method comprises the following steps:
S301:Obtain the solid data packet from terminal device in kind;
In this step, Packet Filtering and capture can be carried out using Ethernet data bag capturing tools, directly from Data packet is obtained in net equipment very much, its advantage is that reducing the agreement process such as network layer, transport layer, is saved in data packet Between time for handling.
S302:Address resolution is carried out to the solid data packet, obtains source address and the destination of the solid data packet Location.
S303:Judge whether the source address of the solid data packet and destination address meet preset address matching rule; When the source address of the solid data packet and destination address meet preset address matching rule, execute S304, S305 and S306;When the source address of the solid data packet and destination address meet preset address matching rule, S307 is executed.
S304:Protocol conversion process is carried out to the solid data packet, the solid data packet is decapsulated, is converted At emulation data packet, and the emulation data packet is sent to data packet receiving queue and is cached.
S305:Signal resolution is synchronized to the emulation data packet, obtains the time of reception of the emulation data packet, and When reaching the time of reception, the synchronous control signal is generated.
S306:Based on the synchronous control signal, control the emulation data packet in the data packet receiving queue It receives to mapping node.
S307:Abandon the solid data packet.
Method is described in detail in aforementioned present invention disclosed embodiment, diversified forms can be used for the method for the present invention Device realize, therefore the invention also discloses a kind of data packet processing, be given below specific embodiment carry out it is detailed Explanation.
Embodiment two
Attached drawing 4 is please referred to, is a kind of structural schematic diagram of data packet processing disclosed by the embodiments of the present invention, the data Packet processing unit is arranged in OMNeT++ Network Simulation Softwares, specifically includes following module:
Data packet acquisition module 11, for obtaining pending data packet;
It should be noted that data packet acquisition module includes data packet sending submodule and data packet receiving submodule.When The pending data packet is the emulation data packet from mapping node, and the transformed data packet is to be sent to material object When the solid data packet of terminal device, the work of data packet sending submodule;When the pending data packet is from kind whole The solid data packet of end equipment, the transformed data packet are data packet when receiving to the emulation data packet of mapping node Receiving submodule works.
Address resolution module 12 obtains described pending for carrying out address resolution to the pending data packet The source address and destination address of data packet;
Mapping block 13 is matched, it is pre- whether source address and destination address for judging the pending data packet meet If address matching rule;
Protocol conversion module 14, described in meeting when the source address and destination address of the pending data packet When preset address matching rule, protocol conversion process is carried out to the pending data packet, generates transformed data packet, And the transformed data packet is sent to processing data packets queue and is cached;
Synchronization control module 15 obtains the conversion for synchronizing signal resolution to the transformed data packet The processing moment of data packet afterwards, and when reaching at the processing moment, synchronous control signal is generated, it is based on the synchronous control Signal controls the processing of the transformed data packet in the processing data packets queue.
It should be noted that the concrete function realization of above-mentioned modules is described in detail in embodiment of the method, this reality Example is applied to repeat no more.
In summary:
The invention discloses a kind of data package processing method and devices, obtain pending data packet;To described pending Data packet carry out address resolution, obtain the source address and destination address of the pending data packet;Judge described pending Data packet source address and destination address whether meet preset address matching rule;When the source of the pending data packet When address and destination address meet preset address matching rule, protocol conversion process is carried out to the pending data packet, Transformed data packet is generated, and the transformed data packet is sent to processing data packets queue and is cached;To described Transformed data packet synchronizes signal resolution, obtains the processing moment of the transformed data packet, and in the processing When moment reaches, synchronous control signal is generated, the synchronous control signal is based on, controls the institute in the processing data packets queue State the processing of transformed data packet.The above method and device can realize that half based on OMNeT++ network (WSN) emulation systems is in kind Network real-time simulation.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part It is bright.
In addition it should be noted that, the apparatus embodiments described above are merely exemplary, wherein described as separation The unit of part description may or may not be physically separated, the component shown as unit can be or It can not be physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to reality Border needs to select some or all of module therein to achieve the purpose of the solution of this embodiment.In addition, provided by the invention In device embodiment attached drawing, the connection relation between module indicates there is communication connection between them, specifically can be implemented as one Item or a plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, you can with Understand and implements.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow Help software that the mode of required common hardware is added to realize, naturally it is also possible to by specialized hardware include application-specific integrated circuit, specially It is realized with CPU, private memory, special components and parts etc..Under normal circumstances, all functions of being completed by computer program can It is easily realized with corresponding hardware, moreover, for realizing that the particular hardware structure of same function can also be a variety of more Sample, such as analog circuit, digital circuit or special circuit etc..But it is more for the purpose of the present invention in the case of software program it is real It is now more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words makes the prior art The part of contribution can be expressed in the form of software products, which is stored in the storage medium that can be read In, such as the floppy disk of computer, USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory Device (RAM, Random Access Memory), magnetic disc or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes the method described in each embodiment of the present invention.
In conclusion the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to upper Stating embodiment, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to upper The technical solution recorded in each embodiment is stated to modify or equivalent replacement of some of the technical features;And these Modification or replacement, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of data package processing method, which is characterized in that be applied to half network in kind based on OMNeT++ network (WSN) emulation systems Real-time simulation, the method includes:
Obtain pending data packet;
Address resolution is carried out to the pending data packet, obtains source address and the destination of the pending data packet Location;
Judge whether the source address of the pending data packet and destination address meet preset address matching rule;
When the source address of the pending data packet and destination address meet the preset address matching rule, to described Pending data packet carries out protocol conversion process, generates transformed data packet, and the transformed data packet is sent It is cached to processing data packets queue;
Signal resolution is synchronized to the transformed data packet, obtains the processing moment of the transformed data packet, and When reaching at the processing moment, synchronous control signal is generated;
Based on the synchronous control signal, the processing of the transformed data packet in the processing data packets queue is controlled.
2. according to the method described in claim 1, it is characterized in that, the pending data packet is imitative from mapping node True data packet;
The transformed data packet is to be sent to the solid data packet of terminal device in kind.
3. according to the method described in claim 2, it is characterized in that, described carry out protocol conversion to the pending data packet Processing, generates transformed data packet, and the transformed data packet is sent to processing data packets queue and is cached, and wraps It includes:
Protocol conversion process is carried out to the emulation data packet, the emulation data packet is sealed according to ethernet frame format Dress, is converted into solid data packet, and the solid data packet is sent to data packet transmit queue and is cached.
4. according to the method described in claim 3, it is characterized in that, described synchronize signal to the transformed data packet Parsing, obtains the processing moment of the transformed data packet, and when reaching at the processing moment, generates synchronous control letter Number, including:
Signal resolution is synchronized to the solid data packet, obtains the delivery time of the solid data packet, and in the hair It send when reaching constantly, generates the synchronous control signal;
It is described to be based on the synchronous control signal, control the place of the transformed data packet in the processing data packets queue Reason, including:
Based on the synchronous control signal, the solid data packet in the data packet transmit queue is sent to material object by control Terminal device.
5. according to the method described in claim 1, it is characterized in that, the pending data packet is from terminal device in kind Solid data packet;
The transformed data packet is to receive to the emulation data packet of mapping node.
6. according to the method described in claim 5, it is characterized in that, described carry out protocol conversion to the pending data packet Processing, generates transformed data packet, and the transformed data packet is sent to processing data packets queue and is cached, and wraps It includes:
Protocol conversion process is carried out to the solid data packet, the solid data packet is decapsulated, is converted into emulation number According to packet, and the emulation data packet is sent to data packet receiving queue and is cached.
7. according to the method described in claim 6, it is characterized in that, described synchronize signal to the transformed data packet Parsing, obtains the processing moment of the transformed data packet, and when reaching at the processing moment, generates synchronous control letter Number, including:
Signal resolution is synchronized to the emulation data packet, obtains the time of reception of the emulation data packet, and connect described Time receiving be carved into up to when, generate the synchronous control signal;
It is described to be based on the synchronous control signal, control the place of the transformed data packet in the processing data packets queue Reason, including:
Based on the synchronous control signal, control receives the emulation data packet in the data packet receiving queue to mapping Node.
8. the method according to any one of claim 1~7, which is characterized in that the method further includes:
When the source address of the pending data packet and destination address are unsatisfactory for preset address matching rule, described in discarding Pending data packet.
9. according to the method described in claim 8, it is characterized in that, the preset address matching rule saves for preset mapping Address translation rule between point and terminal device in kind.
10. a kind of data packet processing, which is characterized in that be applied to half net in kind based on OMNeT++ network (WSN) emulation systems Network real-time simulation, including:
Data packet acquisition module, for obtaining pending data packet;
Address resolution module obtains the pending data packet for carrying out address resolution to the pending data packet Source address and destination address;
Mapping block is matched, whether source address and destination address for judging the pending data packet meet presetly Location matching rule;
Protocol conversion module meets the preset address for the source address and destination address when the pending data packet When matching rule, protocol conversion process is carried out to the pending data packet, generates transformed data packet, and described will turn Data packet after changing is sent to processing data packets queue and is cached;
Synchronization control module obtains the transformed number for synchronizing signal resolution to the transformed data packet According to the processing moment of packet, and when reaching at the processing moment, synchronous control signal is generated;Based on the synchronous control signal, Control the processing of the transformed data packet in the processing data packets queue.
CN201610113752.8A 2016-02-29 2016-02-29 A kind of data package processing method and device Active CN105681101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610113752.8A CN105681101B (en) 2016-02-29 2016-02-29 A kind of data package processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610113752.8A CN105681101B (en) 2016-02-29 2016-02-29 A kind of data package processing method and device

Publications (2)

Publication Number Publication Date
CN105681101A CN105681101A (en) 2016-06-15
CN105681101B true CN105681101B (en) 2018-10-16

Family

ID=56305565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610113752.8A Active CN105681101B (en) 2016-02-29 2016-02-29 A kind of data package processing method and device

Country Status (1)

Country Link
CN (1) CN105681101B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109804610B (en) * 2017-03-23 2022-05-13 柏思科技有限公司 Method and system for limiting data traffic transmission of network enabled devices
CN107454201B (en) * 2017-07-07 2021-06-25 台州市吉吉知识产权运营有限公司 Information interaction method and system for intelligent equipment
CN109711998B (en) * 2018-08-20 2023-10-20 中国平安人寿保险股份有限公司 Data transmission method, device, equipment and readable storage medium
CN110704325B (en) * 2019-10-09 2021-07-30 京东数字科技控股有限公司 Data processing method and device, computer storage medium and electronic equipment
CN111212089B (en) * 2020-02-14 2022-03-11 重庆邮电大学 Protocol conversion method for EtherCAT and IPv6 network
CN114697161B (en) * 2021-12-31 2023-10-13 网络通信与安全紫金山实验室 Semi-solid simulation system and simulation method for time-sensitive network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867505A (en) * 2010-06-25 2010-10-20 华为技术有限公司 Network simulation method and device
CN103200190A (en) * 2013-03-26 2013-07-10 北京理工大学 Physical accessing method facing QualNet network semi-physical simulation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207027658U (en) * 2017-05-25 2018-02-23 北京御冠香食品有限公司 A kind of dicer for being easy to cleaning

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867505A (en) * 2010-06-25 2010-10-20 华为技术有限公司 Network simulation method and device
CN103200190A (en) * 2013-03-26 2013-07-10 北京理工大学 Physical accessing method facing QualNet network semi-physical simulation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
OMNeT++仿真工具的研究与应用;朱晓姝;《OMNeT++仿真工具的研究与应用》;20100115;第29卷(第1期);第62-65页 *
OMNeT++平台上无线传感器网络仿真系统的研究;杨光旭;刘方爱;赵学臣;《计算机应用研究》;20110915;第28卷(第9期);第3343-3346页 *

Also Published As

Publication number Publication date
CN105681101A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN105681101B (en) A kind of data package processing method and device
CN209448755U (en) For the communication interconnection means in Heterogeneous simulation system
US8072992B2 (en) Interfacing real and virtual networks in hardware-in-the-loop (HITL) simulations
CN111224839B (en) Verification method and device for in-band network remote control function, storage medium and electronic equipment
CN103200190B (en) A kind of cut-in method in kind towards QualNet network hardware-in-the-loop simulation
CN105162674A (en) Method and network card for physical machine to access to virtual network
CN104618155B (en) A kind of virtual machine fault-tolerant method, apparatus and system
CN106506225B (en) Electric power data network Hardware In The Loop Simulation Method
CN107404350A (en) Satellite network simulation method, apparatus, electronic equipment and readable storage medium storing program for executing
CN104955074B (en) Test device and test method
CN106850279B (en) Distributed avionics system network collocating method and system, emulator and hardware system
CN110838954B (en) Lightweight large-scale autonomous network protocol function test method
Quaglia et al. A SystemC/Matlab co-simulation tool for networked control systems
CN102984757A (en) Gateway data processing method and gateway data processing device for Internet of Things
CN108234187A (en) A kind of height link simulation method true to nature of data-oriented message forwarding
CN114422010B (en) Protocol testing method of satellite communication simulation platform based on network virtualization
CN103414612A (en) Communication network real-time simulation method based on OPNET
Kölsch et al. Hardware-in-the-loop simulation for Internet of Things scenarios
CN105323115A (en) Data packet simulation method and data packet simulation device of network management test event
WO2011020353A1 (en) Emulation method and system
CN102315981B (en) Equipment and method for testing evolved packet core network equipment
CN102760114A (en) Communication emulation method, engine and system for multi-processor system
CN109417507A (en) The message of section retards accesses
DK1593253T3 (en) Method and apparatus for transparent transmission of data traffic between data processing devices as well as a corresponding computer program product and a corresponding computer-readable medium
CN105245464A (en) Network acceleration method based on Android system

Legal Events

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