CN107204916A - Mail restoring method based on Tilera multinuclear board network packets - Google Patents

Mail restoring method based on Tilera multinuclear board network packets Download PDF

Info

Publication number
CN107204916A
CN107204916A CN201710475114.5A CN201710475114A CN107204916A CN 107204916 A CN107204916 A CN 107204916A CN 201710475114 A CN201710475114 A CN 201710475114A CN 107204916 A CN107204916 A CN 107204916A
Authority
CN
China
Prior art keywords
mail
tilera
multinuclear
board
contents
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710475114.5A
Other languages
Chinese (zh)
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.)
Tianjin Optical Electrical Communication Technology Co Ltd
Original Assignee
Tianjin Optical Electrical Communication 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 Tianjin Optical Electrical Communication Technology Co Ltd filed Critical Tianjin Optical Electrical Communication Technology Co Ltd
Priority to CN201710475114.5A priority Critical patent/CN107204916A/en
Publication of CN107204916A publication Critical patent/CN107204916A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Landscapes

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

Abstract

The invention provides a kind of mail restoring method based on Tilera multinuclear board network packets, it is characterised in that comprises the following steps:Need to dispose development environment before S1, mail reduction, include the connection of Tilera multinuclears board and cabinet hardware, and software systems installation;After S2, development environment deployment, mail reduction is carried out, Tilera multinuclears board is primarily based on and carries out initial configuration, starts the hardware resource used and calls packet receiving interface to carry out packet receiving;S3, the packet received transmitted to TCP flow recombination module;S4, enter different mail recovery modules finally according to port classifications and carry out mail restoring operations.Mail restoring method energy highest of the present invention based on Tilera multinuclear board network packets realizes the 36 core parallel processing mails reduction output eml files of 10GE network packet flows, and the mail restoring function of 163 mailboxes in compatibility pop3, stmp, imap and webmail, can many mail protocol business of parallel processing or the single mail protocol business of independent processing.

Description

Mail restoring method based on Tilera multinuclear board network packets
Technical field
The invention belongs to email correspondence field, Tilera multinuclear board network packets are based on more particularly, to one kind Mail restoring method.
Background technology
At present, the technology that mail reduction is carried out to network packet realizes have and increased income by pfring or libpcap etc. Packet receiving storehouse carries out network packet acquisition, and the two ways is reached after hardware view in the efficiency for obtaining bag due to there are data Repeatedly copied by internal memory and cause cpu resource overhead burden;Also have by polycaryon processor to carry out packet receiving, but the check figure of multinuclear The rarer index for reaching 100 cores in Tilera products, equipment plate card form also it is less reach that Tilera is the same can be by PCI-E Slot small volume and less weight is installed.And mail retrieving algorithm have by storehouse libnids interfaces of increasing income also have oneself design realize.
The content of the invention
In view of this, the present invention is directed to propose a kind of mail reduction side based on Tilera multinuclear board network packets Method, not enough to solve network data packet capturing performance in existing network packet mail reduction technique, retrieving algorithm operation is flat The less situation for reaching multi-core parallel concurrent of platform.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
Based on the mail restoring method of Tilera multinuclear board network packets, comprise the following steps:
Need to dispose development environment before S1, mail reduction, include the company of Tilera multinuclears board and cabinet hardware Connect, and software systems installation;
After S2, development environment deployment, mail reduction is carried out, Tilera multinuclears board is primarily based on and carries out initial configuration, Start the hardware resource used and call packet receiving interface to carry out packet receiving;
S3, by the packet received carry out TCP flow recombination module;
S4, enter different mail recovery modules finally according to port classifications and carry out mail restoring operations.
Further, development environment is disposed in the step S1, and specific method is as follows:
S101, by Tilera multinuclears board insert Portable integral machine cabinet PCIE slots on, fix multinuclear board Afterwards, one of multinuclear board or not more than four optical ports are attached by optical module and optical fiber, network data flow passes through light Fibre enters the optical port formation data path of multinuclear board;
S102, the liunx operating systems for installing centos6.5 on computers, and Tilera development environment versions are installed MDE4.3.3;
S103, sign in by Tilera log on command tile-monitor liunx systems inside Tilera boards Unite, in the present context development deployment mail reducing program code.
Further, in the step S1, after the development environment deployment, when being debugged to serial ports, by multinuclear board AccessPort mouthful be connected to by debugging line on the usb mouths of computer, AccessPort is signed in by tile-console orders Output end.
Further, in the step S2, the method for the Tilera multinuclears board initialization and packet receiving interface, specifically such as Under:
S201, by receiving user's arrange parameter corresponding configuration and initiating hardware resource are carried out, give multinuclear board to carry out Memory Allocation;
S202, TCP flow recombination module is initialized and call back function registration;
S203, call mPIPE high speed packet receiving interfaces, the packet receiving of peek modes carries out the access of network packet.
Further, the execution method of the TCP flow recombination module, specific as follows:
S301, nids_next_special_mpipe function handle packet receiving data;
S302, registered callbacks function pointer chained list recursive call;
S303, Process_tcp carry out TCP restructuring;
Enter the classification judgement that call back function carries out mail protocol after the completion of S304, TCP restructuring, difference is entered into according to port Mail recovery module in.
Further, mail recovery module includes pop3 mails recovery module, stmp mails also grand master pattern in the step S4 Block, imap mails recovery module, http mail recovery modules.
Further, the pop3 mails recovery module, specific execution method is as follows:
S401, the feature for meeting pop3 mail protocols, function entrance is reduced into pop3 mails;
S402, judge whether it is client data, it is 1 that if it is Mail Contents, which obtain flag bit,;If not then sentencing Whether disconnected protocol command is TOP or RETR, and it is 1 that Mail Contents, which obtain mark position, if protocol command meets;
If S403, content obtaining flag bit are 1, Mail Contents end mark is judged;
403rd, Mail Contents end mark is judged, if then content is stored in eml files, if caching Mail Contents without if Used for receiving next time.
Further, the stmp mails recovery module, specific execution method is as follows:
S501, meet stmp mail protocol features, function entrance is reduced into stmp mails;
S502, determine whether servers' data, if it is determine whether whether Mail Contents obtain flag bit For 1;Whether be data, if data orders if protocol command is judged if flag bit is not 1, then Mail Contents obtain mark Position is 1;
S503, Mail Contents obtain the mail that mark position is 1, then determine whether Mail Contents end mark;
S504, Mail Contents end mark is judged, if then content is stored in eml files, if being cached without if in mail Hold and used for receiving next time.
Further, the imap mails recovery module, specific execution method is as follows:
S601, meet imap mail protocol interaction features, function entrance is reduced into imap mails;
S602, determine whether client data, if it is determine whether Mail Contents obtain flag bit whether be 1;If not client data, then protocol command is determined whether, if protocol command meets, Mail Contents flag bit is 1 and combine and cache out Mail Contents end mark;
S603, when Mail Contents are reached, determine whether end mark, have the circulation for then carrying out single envelope mail split and Eml is stored, and Mail Contents are not cached then.
Further, the http mails recovery module just for the http network packets in 163 mailboxes mail also Original, specific execution method is as follows:
S701, meet http mail protocol interaction features, into http mail recovery module entrances;
S702, determine whether client data, if client data, then further determine whether as respective flag Position;If not client data, readMessage, listMessage, readMessage interface flag are determined whether Position, if it is, DeliverMessage interface data contents url is decoded, solution digital content carries out the combination of mime forms, will combine Mime structure contents write-in eml files in;
S703, if client data and meeting corresponding flag bit, then using zlib storehouses decompression gzip contents, to solution Pressure content is judged;
S704, readMessage interface flags position is determined whether, if it is, filling in mail mime structures Head parts;If not then further determining whether as readhtml interface flags position, if readhtml flag bits, then The html parts of mail mime structures are filled in, the mime structure contents of combination are then write into eml files;
S705, if not readhtml interface flags position, then further determine whether as listMessage interface flags Position, if listMessage interface flags position, then splits out single envelope Mail Contents, combines mime structure head portions, then The mime structure contents of combination are write into eml files.
Relative to prior art, the mail restoring method of the present invention based on Tilera multinuclear board network packets Have the advantage that:
Mail restoring method of the present invention based on Tilera multinuclear board network packets can utilize multinuclear The performance such as the packet receiving of Tilera High-Speed Hardwares and multi-core parallel concurrent processing realized to the mail restoring function of network packet, according to being made Tilera boards configuration (actual Tilera boards be up to 100 cores high-speed parallel processing, to performance requirement more Under high application scenarios, higher configuration Tilera boards can be selected to meet), the current present invention uses 36 cores Tilera multinuclear boards, energy highest realizes the 36 core parallel processing mails reduction output eml files of 10GE network packet flows, And the mail restoring function of 163 mailboxes in compatibility pop3, stmp, imap and webmail, can many mail protocol industry of parallel processing The single mail protocol business of business or individually processing, it is hard using this kind of Tilera multinuclears board in the mail reduction field of network data Part form exploitation algorithm has tamped this and has realized technological means.And due to the compact property of multinuclear board, computer can be directly inserted in In PCI-E slots, the hardware board for deploying mail retrieving algorithm can be mounted directly in Portable integral machine, carry out at any time with The network reconnaissance for mail on ground, there is very big application prospect in actual applications.
Brief description of the drawings
The accompanying drawing for constituting the part of the present invention is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate to be used to explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is that the mail restoring method based on Tilera multinuclear board network packets described in the embodiment of the present invention is overall Frame diagram;
Fig. 2 is the initialization of Tilera multinuclears board and the packet receiving block flow diagram described in the embodiment of the present invention;
Fig. 3 is the TCP flow recombination module block flow diagram described in the embodiment of the present invention;
Fig. 4 is the POP3 mail recovery module flow charts described in the embodiment of the present invention;
Fig. 5 is the STMP mail recovery module flow charts described in the embodiment of the present invention;
Fig. 6 is the IMAP mail recovery module flow charts described in the embodiment of the present invention;
Fig. 7 is the HTTP mail recovery module flow charts described in the embodiment of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the embodiment in the present invention and the feature in embodiment can phases Mutually combination.
In the description of the invention, it is to be understood that term " " center ", " longitudinal direction ", " transverse direction ", " on ", " under ", The orientation or position relationship of the instruction such as "front", "rear", "left", "right", " vertical ", " level ", " top ", " bottom ", " interior ", " outer " are Based on orientation shown in the drawings or position relationship, it is for only for ease of the description present invention and simplifies description, rather than indicate or dark Specific orientation must be had, with specific azimuth configuration and operation by showing the device or element of meaning, therefore it is not intended that right The limitation of the present invention.In addition, term " first ", " second " etc. are only used for describing purpose, and it is not intended that indicating or implying phase To importance or the implicit quantity for indicating indicated technical characteristic.Thus, the feature for defining " first ", " second " etc. can To express or implicitly include one or more this feature.In the description of the invention, unless otherwise indicated, " multiple " It is meant that two or more.
In the description of the invention, it is necessary to illustrate, unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected, or be integrally connected;Can To be mechanical connection or electrical connection;Can be joined directly together, can also be indirectly connected to by intermediary, Ke Yishi The connection of two element internals.For the ordinary skill in the art, above-mentioned term can be understood by concrete condition Concrete meaning in the present invention.
Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in figure 1, the mail restoring method based on Tilera multinuclear board network packets, it is characterised in that including Following steps:
Need to dispose development environment before S1, mail reduction, include the company of Tilera multinuclears board and cabinet hardware Connect, and software systems installation;
After S2, development environment deployment, mail reduction is carried out, Tilera multinuclears board is primarily based on and carries out initial configuration, Start the hardware resource used and call packet receiving interface to carry out packet receiving;
S3, by the packet received carry out TCP flow recombination module;
S4, enter different mail recovery modules finally according to port classifications and carry out mail restoring operations.
Wherein, development environment is disposed in the step S1, and specific method is as follows:
S101, by Tilera multinuclears board insert Portable integral machine cabinet PCIE slots on, fix multinuclear board Afterwards, one of multinuclear board or not more than four optical ports are attached by optical module and optical fiber, network data flow passes through light Fibre enters the optical port formation data path of multinuclear board, and the optical port of Tilera multinuclear boards supports GE and XGE, XGE is selected at present Flow be 10Ge;
S102, the liunx operating systems for installing centos6.5 on computers, and Tilera development environment versions are installed MDE4.3.3;
S103, sign in by Tilera log on command tile-monitor liunx systems inside Tilera boards Unite, in the present context development deployment mail reducing program code.
Wherein, in the step S1, after the development environment deployment, when being debugged to serial ports, by the string of multinuclear board Mouth debugging mouth is connected on the usb mouths of computer by debugging line, and signing in AccessPort by tile-console orders exports End.
As shown in Fig. 2 the execution method of the Tilera multinuclears board initialization and packet receiving module, specific as follows:
S201, by receiving user's arrange parameter corresponding configuration and initiating hardware resource are carried out, give multinuclear board to carry out Memory Allocation;
S202, TCP flow recombination module is initialized and call back function registration;
S203, call mPIPE high speed packet receiving interfaces, the packet receiving of peek modes carries out the access of network packet.
The module mainly carries out corresponding configuration and initiating hardware resource by receiving user's arrange parameter, gives multinuclear board NotifRng, NotifGroup, buckets, queues etc. carry out Memory Allocation, while being carried out just to the part that tcp is recombinated Beginningization and call back function are registered, and finally call mPIPE high speed packet receiving interfaces, and the packet receiving of peek modes carries out connecing for network packet Enter.
Fig. 3 is particular flow sheet, and the execution method of the TCP flow recombination module, method is as follows:
S301, nids_next_special_mpipe function handle packet receiving data;
S302, registered callbacks function pointer chained list recursive call;
S303, Process_tcp carry out TCP restructuring;
Enter the classification judgement that call back function carries out mail protocol after the completion of S304, TCP flow restructuring, entered into not according to port In same mail recovery module.
Flow recombination function mainly by means of the tcp for the storehouse libnids that increases income, Open Source Code be reconstructed modification, addition and MPIPE mating interface, tcp stream recombination modules are introduced by network packet flow, while the data structure to libnids is carried out Modification, adds the user field that data convert algorithm needs to use, facilitates subsequent treatment.Enter readjustment after the completion of Tcp stream restructuring The classification that function carries out mail protocol judges, is entered into according to port in different mail recovery module algorithms.
Wherein, in the step S2 mail recovery module include pop3 mails recovery module, stmp mails recovery module, Imap mails recovery module, http mail recovery modules.
As shown in figure 4, the pop3 mails recovery module, according to the feature of pop3 mail protocols, carries out algorithm design, Client just has mail data and sends the specific side of execution when service end sends TOP or RETR protocol commands in pop3 mail protocols Method is as follows:
S401, the feature for meeting pop3 mail protocols, function entrance is reduced into pop3 mails;
S402, judge whether it is client data, it is 1 that if it is Mail Contents, which obtain flag bit,;If not then sentencing Whether disconnected protocol command is TOP or RETR, and it is 1 that Mail Contents, which obtain mark position, if protocol command meets;
If S403, content obtaining flag bit are 1, Mail Contents end mark is judged;
403rd, Mail Contents end mark is judged, if then content is stored in eml files, if caching Mail Contents without if Used for receiving next time.
As shown in figure 5, the stmp mails recovery module, according to stmp mail protocol features, carries out algorithm design, the calculation Method is similar with pop3, is sent the difference is that the stmp useful to us protocol command and Mail Contents data flow are all service ends Come over, and it is DATA to obtain the protocol command of Mail Contents, specific execution method is as follows:
S501, meet stmp mail protocol features, function entrance is reduced into stmp mails;
S502, determine whether servers' data, if it is determine whether whether Mail Contents obtain flag bit For 1;Whether be data, if data orders if protocol command is judged if flag bit is not 1, then Mail Contents obtain mark Position is 1;
S503, Mail Contents obtain the mail that mark position is 1, then determine whether Mail Contents end mark;
S504, Mail Contents end mark is judged, if then content is stored in eml files, if being cached without if in mail Hold and used for receiving next time.
As shown in fig. 6, the imap mails recovery module, the module is used according to imap mail protocol interaction features, band FETCH protocol commands, and it is whole to carry the similar acquisition request mail such as parameter BODY.PEEK [] or BODY.PEEK [HEADER] Inside perhaps the protocol command of partial content when, record enters Mail Contents reducing condition, and combines and cache out Mail Contents knot Beam is accorded with, and when Mail Contents are reached, determines whether end mark, has the circulation for then carrying out single envelope mail to split and eml storages, does not have Have, cache Mail Contents.Specific execution method is as follows:
S601, meet imap mail protocol interaction features, function entrance is reduced into imap mails;
S602, determine whether client data, if it is determine whether Mail Contents obtain flag bit whether be 1;If not client data, then protocol command is determined whether, if protocol command meets, Mail Contents flag bit is 1 and combine and cache out Mail Contents end mark;
S603, when Mail Contents are reached, determine whether end mark, have the circulation for then carrying out single envelope mail split and Eml is stored, and Mail Contents are not cached then.
As shown in fig. 7, the mail of the current http network packets just for 163 mailboxes of the http mails recovery module Reduction, operates the network packet produced analysis to obtain the protocol command form that mailbox is operated according to mailbox:
A) show that mail tabulation is operated when user clicks on " inbox ", request url is POST side in correspondence http agreements Method and include " &func=mbox:ListMessage " is identified;
B) when user, which clicks on some mail, checks Mail Contents, two request url in correspondence http agreements, one is POST method and include ” &func=mbox:ReadMessage " and " &action=read " is identified, and includes mail header letter Breath;Another is GET methods and comprising " read/readhtml.jsp" mark, the postal shown comprising mail with html Part content;
C) when user, which clicks on, sends mail, request url is POST method and includes " &func in correspondence http agreements =mbox:Compose " and " &action=deliver " mark;
Different interface flag positions, when analyzing url, set when recognizing corresponding interface are distributed according to these interface types The corresponding interface flag bit, the parsing of tap mouth is carried out when Mail Contents are reached, it is necessary first to carry out gzip compressions using zlib Content decompression, wherein DeliverMessage, which sends the operation that then carries out of mail interface, to be entered by the content of url transcodings Row decoding, then extracts the field informations such as From, To, Subject in mime forms to Context resolution again and carries out mime forms Combination, finally by mime forms write eml files in.
Specifically execution method is:
Specifically execution method is:
S701, meet http mail protocol interaction features, into http mail recovery module entrances;
S702, determine whether client data, if client data, then further determine whether as respective flag Whether position is Content-Encoding:Gzip r n r n and end mark 0 r n r n;If not client data, sentence Whether disconnected be readMessage, listMessage, readMessage interface flag position, if it is, DeliverMessage connects Mouth data content url decodings, solution digital content carries out the combination of mime forms, the mime structure contents of combination is write into eml files In;
S703, if client data and meeting corresponding flag bit, then using zlib storehouses decompression gzip contents, to solution Pressure content is judged;
S704, readMessage interface flags position is determined whether, if it is, filling in mail mime structures Head parts;If not then further determining whether as readhtml interface flags position, if readhtml flag bits, then The html parts of mail mime structures are filled in, the mime structure contents of combination are then write into eml files;
S705, if not readhtml interface flags position, then further determine whether as listMessage interface flags Position, if listMessage interface flags position, then splits out single envelope Mail Contents, combines mime structure head portions, then The mime structure contents of combination are write into eml files.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God is with principle, and any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. the mail restoring method based on Tilera multinuclear board network packets, it is characterised in that comprise the following steps:
Need to dispose development environment before S1, mail reduction, include the connection of Tilera multinuclears board and cabinet hardware, with And the installation of software systems;
After S2, development environment deployment, mail reduction is carried out, Tilera multinuclears board is primarily based on and carries out initial configuration, start The hardware resource that uses simultaneously calls packet receiving interface to carry out packet receiving;
S3, the packet received transmitted to TCP flow recombination module;
S4, enter different mail recovery modules finally according to port classifications and carry out mail restoring operations.
2. the mail restoring method according to claim 1 based on Tilera multinuclear board network packets, its feature exists In development environment is disposed in the step S1, and specific method is as follows:
S101, by Tilera multinuclears board insert Portable integral machine cabinet PCIE slots on, fix after multinuclear board, will One of multinuclear board or not more than four optical ports are attached by optical module and optical fiber, and network data flow is entered by optical fiber The optical port formation data path of multinuclear board;
S102, the liunx operating systems for installing centos6.5 on computers, and Tilera development environment versions are installed MDE4.3.3;
S103, sign in by Tilera log on command tile-monitor liunx systems inside Tilera boards, Development deployment mail reducing program code under the environment.
3. the mail restoring method according to claim 1 or 2 based on Tilera multinuclear board network packets, its feature It is:In the step S1, after the development environment deployment, when being debugged to serial ports, by the AccessPort mouthful of multinuclear board It is connected to by debugging line on the usb mouths of computer, AccessPort output end is signed in by tile-console orders.
4. the mail restoring method according to claim 1 based on Tilera multinuclear board network packets, its feature exists In:In the step S2, the method for the Tilera multinuclears board initialization and packet receiving interface is specific as follows:
S201, by receiving user's arrange parameter corresponding configuration and initiating hardware resource are carried out, give multinuclear board to carry out internal memory Distribution;
S202, TCP flow recombination module is initialized and call back function registration;
S203, call mPIPE high speed packet receiving interfaces, the packet receiving of peek modes carries out the access of network packet.
5. the mail restoring method according to claim 1 based on Tilera multinuclear board network packets, its feature exists In:The execution method of the TCP flow recombination module, it is specific as follows:
S301, nids_next_special_mpipe function handle packet receiving data;
S302, registered callbacks function pointer chained list recursive call;
S303, Process_tcp carry out TCP restructuring;
Enter the classification judgement that call back function carries out mail protocol after the completion of S304, TCP restructuring, different postals are entered into according to port In part recovery module.
6. the mail restoring method according to claim 1 based on Tilera multinuclear board network packets, its feature exists In:Mail recovery module includes pop3 mails recovery module, stmp mails recovery module, the reduction of imap mails in the step S4 Module, http mail recovery modules.
7. the mail restoring method according to claim 6 based on Tilera multinuclear board network packets, its feature exists In:The pop3 mails recovery module, specific execution method is as follows:
S401, the feature for meeting pop3 mail protocols, function entrance is reduced into pop3 mails;
S402, judge whether it is client data, it is 1 that if it is Mail Contents, which obtain flag bit,;If not then judgement association Whether view order is TOP or RETR, and it is 1 that Mail Contents, which obtain mark position, if protocol command meets;
If S403, content obtaining flag bit are 1, Mail Contents end mark is judged;
403rd, Mail Contents end mark is judged, if then content is stored in eml files, under Mail Contents are cached without and if are supplied Once receive and use.
8. the mail restoring method according to claim 6 based on Tilera multinuclear board network packets, its feature exists In:The stmp mails recovery module, specific execution method is as follows:
S501, meet stmp mail protocol features, function entrance is reduced into stmp mails;
S502, determine whether servers' data, if it is determine whether that Mail Contents obtain whether flag bit is 1; Whether be data, if data orders if protocol command is judged if flag bit is not 1, then Mail Contents obtain mark position For 1;
S503, Mail Contents obtain the mail that mark position is 1, then determine whether Mail Contents end mark;
S504, judge Mail Contents end mark, if then content is stored in eml files, supplied if caching Mail Contents without if Receive and use next time.
9. the mail restoring method according to claim 6 based on Tilera multinuclear board network packets, its feature exists In:The imap mails recovery module, specific execution method is as follows:
S601, meet imap mail protocol interaction features, function entrance is reduced into imap mails;
S602, determine whether client data, if it is determine whether that Mail Contents obtain whether flag bit is 1;Such as Fruit is not client data, then determines whether protocol command, if protocol command meets, and Mail Contents flag bit is 1 simultaneously And combination caches out Mail Contents end mark;
S603, when Mail Contents are reached, determine whether end mark, have, the circulation for carrying out single envelope mail is split and eml is deposited Storage, Mail Contents are not cached then.
10. the mail restoring method according to claim 6 in Tilera multinuclear board network packets, its feature exists In:The http mails recovery module is reduced just for the mail of the http network packets of 163 mailboxes, specific to perform method such as Under:
S701, meet http mail protocol interaction features, into http mail recovery module entrances;
S702, determine whether client data, if client data, then further determine whether as respective flag position; If not client data, readMessage, listMessage, readMessage interface flag position are determined whether, such as Fruit is that DeliverMessage interface data contents url decodings, solution digital content carries out the combination of mime forms, by combination In mime structure contents write-in eml files;
S703, if client data and meeting corresponding flag bit, then using zlib storehouses decompression gzip contents, in decompression Appearance is judged;
S704, readMessage interface flags position is determined whether, if it is, filling in the head portions of mail mime structures Point;If not then further determining whether as readhtml interface flags position, if readhtml flag bits, then fill in postal The html parts of part mime structures, then write eml files by the mime structure contents of combination;
S705, if not readhtml interface flags position, then further determine whether as listMessage interface flags position, If listMessage interface flags position, then single envelope Mail Contents are split out, then combination mime structure head portions will The mime structure contents write-in eml files of combination.
CN201710475114.5A 2017-06-21 2017-06-21 Mail restoring method based on Tilera multinuclear board network packets Pending CN107204916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710475114.5A CN107204916A (en) 2017-06-21 2017-06-21 Mail restoring method based on Tilera multinuclear board network packets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710475114.5A CN107204916A (en) 2017-06-21 2017-06-21 Mail restoring method based on Tilera multinuclear board network packets

Publications (1)

Publication Number Publication Date
CN107204916A true CN107204916A (en) 2017-09-26

Family

ID=59907182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710475114.5A Pending CN107204916A (en) 2017-06-21 2017-06-21 Mail restoring method based on Tilera multinuclear board network packets

Country Status (1)

Country Link
CN (1) CN107204916A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468389A (en) * 2020-12-02 2021-03-09 天津光电通信技术有限公司 Imap mail reduction method based on tcp recombination
CN112468343A (en) * 2020-12-02 2021-03-09 天津光电通信技术有限公司 X86 card-based platform and method for restoring important materials of network data packets
WO2021253177A1 (en) * 2020-06-15 2021-12-23 深圳市欢太科技有限公司 File restoration method, and terminal and storage medium
CN115150348A (en) * 2021-03-30 2022-10-04 奇安信科技集团股份有限公司 Mail attachment restoring method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102655482A (en) * 2011-12-26 2012-09-05 上海西默通信技术有限公司 HTTP (hyper text transport protocol) protocol analysis based web E-mail recovering method
CN103532955A (en) * 2013-10-18 2014-01-22 苏州斯凯迪网络科技有限公司 Embedded multi-protocol mobile network data acquisition probe equipment
CN103916316A (en) * 2014-04-11 2014-07-09 国家计算机网络与信息安全管理中心 Linear speed capturing method of network data packages
US20160277344A1 (en) * 2015-03-16 2016-09-22 International Business Machines Corporation Auto clean-up of unused email rules
CN106131091A (en) * 2016-08-31 2016-11-16 杭州华途软件有限公司 A kind of based on STARTTLS/SSL/TLS mail protocol Mail Contents also original system and content reduction method
CN106453249A (en) * 2016-08-31 2017-02-22 杭州华途软件有限公司 Monitoring method of network mail business

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102655482A (en) * 2011-12-26 2012-09-05 上海西默通信技术有限公司 HTTP (hyper text transport protocol) protocol analysis based web E-mail recovering method
CN103532955A (en) * 2013-10-18 2014-01-22 苏州斯凯迪网络科技有限公司 Embedded multi-protocol mobile network data acquisition probe equipment
CN103916316A (en) * 2014-04-11 2014-07-09 国家计算机网络与信息安全管理中心 Linear speed capturing method of network data packages
US20160277344A1 (en) * 2015-03-16 2016-09-22 International Business Machines Corporation Auto clean-up of unused email rules
CN106131091A (en) * 2016-08-31 2016-11-16 杭州华途软件有限公司 A kind of based on STARTTLS/SSL/TLS mail protocol Mail Contents also original system and content reduction method
CN106453249A (en) * 2016-08-31 2017-02-22 杭州华途软件有限公司 Monitoring method of network mail business

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴勋,刘嘉勇: "基于网络数据包的邮件还原技术研究", 《通信技术》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021253177A1 (en) * 2020-06-15 2021-12-23 深圳市欢太科技有限公司 File restoration method, and terminal and storage medium
CN112468389A (en) * 2020-12-02 2021-03-09 天津光电通信技术有限公司 Imap mail reduction method based on tcp recombination
CN112468343A (en) * 2020-12-02 2021-03-09 天津光电通信技术有限公司 X86 card-based platform and method for restoring important materials of network data packets
CN112468389B (en) * 2020-12-02 2022-04-15 天津光电通信技术有限公司 Imap mail reduction method based on tcp recombination
CN112468343B (en) * 2020-12-02 2023-10-24 天津光电通信技术有限公司 Restoration platform and method for network data packet important materials based on X86 card
CN115150348A (en) * 2021-03-30 2022-10-04 奇安信科技集团股份有限公司 Mail attachment restoring method and system
CN115150348B (en) * 2021-03-30 2024-05-03 奇安信科技集团股份有限公司 Mail attachment restoring method and system

Similar Documents

Publication Publication Date Title
CN107204916A (en) Mail restoring method based on Tilera multinuclear board network packets
Marx et al. Same standards, different decisions: A study of QUIC and HTTP/3 implementation diversity
Li et al. Research based on OSI model
US8799504B2 (en) System and method of TCP tunneling
US6940864B2 (en) Network access traffic sorter
Kumar et al. The osi model: overview on the seven layers of computer networks
EP0905938A2 (en) Hardware checksum assist for network protocol stacks
US20170163719A1 (en) File transfer using xml
CN105376225B (en) A kind of method and device of software service
CN106453625B (en) Information synchronization method and high availability cluster system
CN103647701B (en) The control method and device of instantaneous communication system message forwarding
CN109120687A (en) Data packet sending method, device, system, equipment and storage medium
US20110007754A1 (en) Flexible Hardware Checksum Generator
CN113225320A (en) Network message analysis method for keeping user configurable message format secret
CN114500614A (en) Satellite telemetry data processing method and device, electronic equipment and readable medium
CN107426166A (en) A kind of acquisition methods of information, device and electronic equipment
CN117336394B (en) Multi-user data transmission protocol based on regenerative forwarding
EP2437447B1 (en) Multimedia message forwarding method, device and system thereof
US7940767B2 (en) Method and system of routing a communication within a network
CN104219212B (en) Video file across a network transmission method, apparatus and system
EP2530893B1 (en) Method and apparatus for obtaining size of emails of terminal
Dreschmann et al. A framework for multi-fpga interconnection using multi gigabit transceivers
CN111200588B (en) Data transmission method based on protocol architecture of transmission layer and electronic equipment
CN114710570A (en) UDP data zero-copy transmission method based on kernel mode protocol stack
Jacobson RFC1144: Compressing TCP/IP headers for low-speed serial links

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170926