Ship mail communication method and system based on automatic slicing

Through automatic slicing technology, ship mail is divided into multiple slices according to the timeliness priority and data volume, solving the problems of high network bandwidth and low resource utilization efficiency in the existing technology, and achieving more efficient network resource utilization and email timeliness Assure.

CN119155272AInactive Publication Date: 2024-12-17GUANG ZHOU CHINA SHIPPING TELECOMM CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411618209.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2024-12-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing marine mail communication methods have high network bandwidth requirements and low resource utilization efficiency during transmission, and cannot optimize the slice timeliness, resulting in lag in the communication process.

Method used

Using the automatic slice-based method, the basic data of email transmission is obtained through the email age priority sorting queue and the data volume sorting queue. The email to be transmitted is divided into multiple email slices, and each slice is edge-divided, and the data is divided according to the email slice. Conduct transmission.

Benefits of technology

It improves the efficiency of network resources, ensures the timeliness of emails, reduces the network burden during navigation, and reduces the lag of communication processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155272A_ABST
    Figure CN119155272A_ABST
Patent Text Reader

Abstract

The invention discloses a ship mail communication method and system based on automatic slicing, relates to the field of communication, solves the problem that the ship mail communication method is poor in network resource utilization efficiency, and comprises the following steps: S1, obtaining a to-be-transmitted mails, and respectively carrying out aging analysis and data volume analysis on the a to-be-transmitted mails, the method comprises the following steps: S1, according to a plurality of emails to be transmitted, obtaining an email timeliness priority ranking queue and an email data volume ranking queue, and defining the email timeliness priority ranking queue and the email data volume ranking queue as email transmission basic data; and S2, dividing the plurality of emails to be transmitted into a plurality of email slices according to the email transmission basic data, the method comprises the following steps of S1, obtaining mail slices, and carrying out edge segmentation on each mail slice to obtain mail slice division data, and S3, transmitting a to-be-transmitted mail according to the mail slice division data, and can improve the utilization efficiency of network resources and the security of communication transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication and relates to data processing technology, and specifically to a ship mail communication method and system based on automatic slicing. Background Art

[0002] The existing ship mail communication method has the following defects when communicating: 1. The existing mail communication method transmits mails generated by ships in real time, which has high requirements on network bandwidth and low utilization efficiency of network resources; 2. The existing email communication method is random when performing network slicing, and cannot optimize the timeliness of slicing according to the sending and receiving time of emails, resulting in lag in the communication process; To this end, we propose a ship mail communication method and system based on automatic slicing. Summary of the invention

[0003] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a ship mail communication method and system based on automatic slicing. The present invention obtains basic mail transmission data based on the mail time priority sorting queue and the mail data volume sorting queue, divides multiple mails to be transmitted into multiple mail slices according to the basic mail transmission data, and performs edge segmentation on each mail slice to obtain mail slice division data, and transmits the mails to be transmitted according to the mail slice division data.

[0004] In order to achieve the above object, the present invention adopts the following technical solution: A ship mail communication method based on automatic slicing includes the following specific steps: Step S1: respectively obtain the target data transmission period, obtain the mails to be transmitted generated by the ship within the target data transmission period, obtain a mails to be transmitted, respectively obtain the mail timeliness coefficient corresponding to each mail to be transmitted, and arrange them in descending order to obtain a mail timeliness priority sorting queue, and obtain the data volume of each mail to be transmitted in the mail timeliness priority sorting queue, and analyze it in combination with the mail timeliness priority sorting queue to obtain a mail data volume sorting queue, and define the mail timeliness priority sorting queue and the mail data volume sorting queue as mail transmission basic data; Step S2: dividing the multiple mails to be transmitted into multiple mail slices according to the mail transmission basic data, and performing edge segmentation on each mail slice to obtain mail slice division data; Step S3: Transmit the emails to be transmitted according to the email slice data division.

[0005] Furthermore, the step S1 further includes the following specific steps: Step S11: The process of ship mail communication is divided into multiple data transmission time periods, the time value corresponding to the current time is obtained as the reference time value, and the data transmission time period closest to the reference time value is obtained as the target data transmission time period; Step S12: respectively obtaining the mails to be transmitted generated by the target ship during the target data transmission period, obtaining a mails to be transmitted, and randomly selecting one mail to be transmitted from the a mails to be transmitted as a sample mail to be transmitted; Step S13: Analyze the sample file to be transmitted to obtain the email timeliness coefficient corresponding to the sample file to be transmitted; Step S14: Repeat the process of obtaining the mail time efficiency coefficients corresponding to the sample bag transmission files, and obtain the mail time efficiency coefficients corresponding to each mail to be transmitted, to obtain a mail time efficiency coefficients; Step S15: Arrange the a mail timeliness coefficients in descending order according to their numerical values ​​to obtain a mail timeliness priority sorting queue; Step S16: respectively obtaining the data volume of each to-be-transmitted email in the email time-efficiency priority sorting queue, and analyzing it in combination with the email time-efficiency priority sorting queue to obtain an email data volume sorting queue; Step S17: defining the mail time priority sorting queue and the mail data volume sorting queue as mail transmission basic data.

[0006] Furthermore, the step S13 further includes the following specific steps: Step S131: obtaining the generation time of the sample mail to be transmitted in the sending ship to obtain a first mail transmission time value; Step S132: obtaining the latest receiving time of the sample mail to be transmitted in the receiving ship to obtain a second mail transmission time value; Step S133: Obtaining a reference time value; Step S134: Calculate the reference time value, the first mail transmission time value and the second mail transmission time value to obtain the mail time efficiency coefficient corresponding to the sample bag transmission file; Calculate the mail efficiency coefficient corresponding to the sample bag transmission file. The specific formula is as follows: ; Among them, Yjs is the mail time efficiency coefficient corresponding to the sample bag transmission file, Sj1 is the first mail transmission time value, Sj2 is the second mail transmission time value, and Sjj is the reference time value.

[0007] Furthermore, the step S16 further includes the following specific steps: Step S161: marking the data volume corresponding to the first-ranked email to be transmitted in the email time priority sorting queue as the first-priority data volume; Step S162: obtaining the data volume corresponding to the second-ranked email to be transmitted in the email time priority sorting queue, and calculating the sum of the data volume corresponding to the second-ranked email to be transmitted and the first-ranked data volume to obtain the second-ranked data volume; Step S163: obtaining the data volume corresponding to the third-ranked email to be transmitted in the email time priority sorting queue, and calculating the sum of the data volume corresponding to the third-ranked email to be transmitted and the second-ranked data volume to obtain the third-ranked data volume; Step S164: Obtain the data volume corresponding to each priority in the email timeliness priority sorting queue respectively, and obtain the fourth priority data volume to the ath priority data volume, and mark the first priority to the ath priority in the email timeliness priority sorting queue respectively to obtain the email data volume sorting queue.

[0008] Furthermore, the step S2 further includes the following specific steps: Step S21: Obtaining basic email transmission data, and obtaining an email timeliness priority sorting queue and an email data volume sorting queue according to the basic email transmission data; Step S22: Mark b slicing points in the mail data volume sorting queue, and the data volume difference between every two consecutive slicing points is equal and is the characteristic interval data volume, and the b slicing points are named as the first slicing point to the bth slicing point respectively; Step S23: Divide the first to-be-transmitted mail to the ath to-be-transmitted mail in the mail data volume sorting queue into c mail slices through the first slice segmentation point to the bth slice segmentation point, and name them as the first mail slice to the cth mail slice; Step S24: define the first mail slice to the cth mail slice as mail slice division data.

[0009] Furthermore, the step S23 further includes the following specific steps: Step S231: obtaining a mail data volume sorting queue, marking the head of the queue in the mail data volume sorting queue with the first slicing split point, and marking the tail of the queue in the mail data volume sorting queue with the bth slicing split point; Step S232: between the first slice segmentation point and the b-th slice segmentation point, a slice segmentation point is marked for each characteristic interval data amount, and the slice segmentation points marked between the first slice segmentation point and the b-th slice segmentation point are sequentially the second slice segmentation point to the b-1-th slice segmentation point; Step S233: Perform edge segmentation on the first mail slice to obtain the first mail slice: Step S234: performing edge segmentation on the second mail slice to the c-th mail slice respectively to obtain the second mail slice to the c-th mail slice.

[0010] Furthermore, the step S233 further includes the following specific steps: Step S2331: Slice the complete emails to be transmitted between the first slicing point and the second slicing point into first email slices, and obtain the sequence data volume corresponding to the last complete email to be transmitted between the first slicing point and the second slicing point, and name it as the first characteristic sequence data volume; Step S2332: obtaining the sequence data volume corresponding to the last incomplete email to be transmitted between the first slice segmentation point and the second slice segmentation point, and naming it as the second characteristic sequence data volume; Step S2333: If the first-order data volume is equal to the data volume corresponding to the second slice segmentation point, the complete email to be transmitted between the first slice segmentation point and the second slice segmentation point is the first email segment; Step S2334: if the first-order data volume is less than the data volume corresponding to the second slice segmentation point, the difference between the second-order data volume and the data volume corresponding to the second slice segmentation point is calculated, and the absolute value of the obtained difference is taken to obtain the first segmentation data volume difference; the difference between the second-order data volume and the data volume corresponding to the third slice segmentation point is calculated, and the absolute value of the obtained difference is taken to obtain the second segmentation data volume difference; Step S2335: when the first segmentation data volume difference is greater than or equal to the second segmentation data volume difference, dividing the transmitted email corresponding to the second characteristic sequence data volume into a second email slice; Step S2336: When the first segmentation data volume difference is smaller than the second segmentation data volume difference, the transmission email corresponding to the second characteristic sequence data volume is divided into a third email slice.

[0011] Furthermore, the step S3 further includes the following specific steps: Step S31: obtaining mail slice division data, and obtaining the first mail slice to the cth mail slice respectively according to the mail slice division data; Step S32: the ship sending end performs a transmission test on the ship receiving end. If the test passes, the ship sending end transmits the first mail slice to the c-th mail slice to the ship receiving end through the FTP protocol. The ship receiving end receives the first mail slice to the c-th mail slice, and obtains a mails to be transmitted through the first mail slice to the c-th mail slice; Step S33: If the test fails, the ship sending end issues an information transmission warning and terminates the transmission of the first mail slice to the cth mail slice to the ship receiving end.

[0012] Furthermore, the step S32 further includes the following specific steps: Step S321: the ship transmitting end sends a SYN packet to the ship receiving end; Step S322: The ship sending end obtains the SYN packet. After receiving the encrypted SYN-ACK packet, the ship receiving end needs to decrypt the encrypted SYN-ACK. If the decryption is completed, the test passes, otherwise the test fails.

[0013] A ship mail communication system based on automatic slicing, comprising: Data acquisition module: used to sort the mail time priority queue and mail data volume queue respectively, and obtain the basic data of mail transmission; Data slicing module: used to divide multiple emails to be transmitted into multiple email slices according to the basic data of email transmission, and perform edge segmentation on each email slice to obtain email slice division data; Data transmission module: used to transmit the emails to be transmitted according to the email slice data division.

[0014] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are: 1. The present invention can disperse the network burden of ships during navigation and improve the utilization efficiency of network resources by converting multiple ship mails into network slices for transmission; 2. In the process of slice transmission, the present invention can provide a guarantee for the timeliness of receiving emails by obtaining the email timeliness coefficient to sort the position of the emails in the slice. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.

[0016] Figure 1 It is a diagram of the implementation steps of the present invention; Figure 2 is the overall system block diagram of the present invention; Figure 3 It is a schematic diagram of the mail data volume sorting queue of the present invention. DETAILED DESCRIPTION

[0017] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] Embodiment 1 See also Figure 1 The present invention provides a technical solution: a ship mail communication method and system based on automatic slicing, comprising the following specific steps: Step S1: sorting the mail time priority queue and mail data volume queue respectively to obtain mail transmission basic data; Step S11: The process of ship mail communication is divided into multiple data transmission time periods, the time value corresponding to the current time is obtained as the reference time value, and the data transmission time period closest to the reference time value is obtained as the target data transmission time period; Step S12: respectively obtaining the mails to be transmitted generated by the target ship during the target data transmission period, obtaining a mails to be transmitted, and randomly selecting one mail to be transmitted from the a mails to be transmitted as a sample mail to be transmitted; Step S13: Analyze the sample file to be transmitted to obtain the email timeliness coefficient corresponding to the sample file to be transmitted; The step S13 further includes the following specific steps: Step S131: obtaining the generation time of the sample mail to be transmitted in the sending ship to obtain a first mail transmission time value; Step S132: obtaining the latest receiving time of the sample mail to be transmitted in the receiving ship to obtain a second mail transmission time value; Step S133: Obtaining a reference time value; Step S134: Calculate the reference time value, the first mail transmission time value and the second mail transmission time value to obtain the mail time efficiency coefficient corresponding to the sample bag transmission file; Calculate the mail efficiency coefficient corresponding to the sample bag transmission file. The specific formula is as follows: ; Among them, Yjs is the mail time efficiency coefficient corresponding to the sample bag transmission file, Sj1 is the first mail transmission time value, Sj2 is the second mail transmission time value, and Sjj is the reference time value; Step S14: Repeat the process of obtaining the mail time efficiency coefficients corresponding to the sample bag transmission files, and obtain the mail time efficiency coefficients corresponding to each mail to be transmitted, to obtain a mail time efficiency coefficients; Step S15: Arrange the a mail timeliness coefficients in descending order according to their numerical values ​​to obtain a mail timeliness priority sorting queue; Step S16: respectively obtaining the data volume of each to-be-transmitted email in the email time-efficiency priority sorting queue, and analyzing it in combination with the email time-efficiency priority sorting queue to obtain an email data volume sorting queue; The step S16 further includes the following specific steps: Step S161: marking the data volume corresponding to the first-ranked email to be transmitted in the email time priority sorting queue as the first-priority data volume; Step S162: obtaining the data volume corresponding to the second-ranked email to be transmitted in the email time priority sorting queue, and calculating the sum of the data volume corresponding to the second-ranked email to be transmitted and the first-ranked data volume to obtain the second-ranked data volume; Step S163: obtaining the data volume corresponding to the third-ranked email to be transmitted in the email time priority sorting queue, and calculating the sum of the data volume corresponding to the third-ranked email to be transmitted and the second-ranked data volume to obtain the third-ranked data volume; Step S164: respectively obtain the data volume corresponding to each order in the mail timeliness priority sorting queue, obtain the data volume of the fourth order to the ath order, mark the data volume of the first order to the ath order in the mail timeliness priority sorting queue, and obtain the mail data volume sorting queue; Step S17: defining the mail time priority sorting queue and the mail data volume sorting queue as mail transmission basic data; Step S2: dividing the multiple mails to be transmitted into multiple mail slices according to the mail transmission basic data, and performing edge segmentation on each mail slice to obtain mail slice division data; Step S21: Obtaining basic email transmission data, and obtaining an email timeliness priority sorting queue and an email data volume sorting queue according to the basic email transmission data; Step S22: Mark b slicing points in the mail data volume sorting queue, and the data volume difference between every two consecutive slicing points is equal and is the characteristic interval data volume, and the b slicing points are named as the first slicing point to the bth slicing point respectively; Step S23: Divide the first to-be-transmitted mail to the ath to-be-transmitted mail in the mail data volume sorting queue into c mail slices through the first slice segmentation point to the bth slice segmentation point, and name them as the first mail slice to the cth mail slice; The step S23 further includes the following specific steps: Step S231: obtaining a mail data volume sorting queue, marking the head of the queue in the mail data volume sorting queue with the first slicing split point, and marking the tail of the queue in the mail data volume sorting queue with the bth slicing split point; Step S232: between the first slice segmentation point and the b-th slice segmentation point, a slice segmentation point is marked for each characteristic interval data amount, and the slice segmentation points marked between the first slice segmentation point and the b-th slice segmentation point are sequentially the second slice segmentation point to the b-1-th slice segmentation point; Step S233: Perform edge segmentation on the first mail slice to obtain the first mail slice: The step S233 further includes the following specific steps: Step S2331: Slice the complete emails to be transmitted between the first slicing point and the second slicing point into first email slices, and obtain the sequence data volume corresponding to the last complete email to be transmitted between the first slicing point and the second slicing point, and name it as the first characteristic sequence data volume; Step S2332: obtaining the sequence data volume corresponding to the last incomplete email to be transmitted between the first slice segmentation point and the second slice segmentation point, and naming it as the second characteristic sequence data volume; Step S2333: If the first-order data volume is equal to the data volume corresponding to the second slice segmentation point, the complete email to be transmitted between the first slice segmentation point and the second slice segmentation point is the first email segment; Step S2334: if the first-order data volume is less than the data volume corresponding to the second slice segmentation point, the difference between the second-order data volume and the data volume corresponding to the second slice segmentation point is calculated, and the absolute value of the obtained difference is taken to obtain the first segmentation data volume difference; the difference between the second-order data volume and the data volume corresponding to the third slice segmentation point is calculated, and the absolute value of the obtained difference is taken to obtain the second segmentation data volume difference; Step S2335: when the data volume difference of the first segmented data is greater than or equal to the data volume difference of the second segmented data, the transmitted email corresponding to the data volume of the second characteristic sequence is divided into a second email slice; Step S2336: when the data volume difference of the first segmented data is smaller than the data volume difference of the second segmented data, the transmitted email corresponding to the data volume of the second characteristic sequence is divided into a third email slice; Step S234: performing edge segmentation on the second mail slice to the c-th mail slice respectively to obtain the second mail slice to the c-th mail slice; Step S24: defining the first mail slice to the cth mail slice as mail slice division data; Step S3: Transmit the emails to be transmitted according to the email slice data division; Step S31: obtaining mail slice division data, and obtaining the first mail slice to the cth mail slice respectively according to the mail slice division data; Step S32: the ship sending end performs a transmission test on the ship receiving end. If the test passes, the ship sending end transmits the first mail slice to the c-th mail slice to the ship receiving end through the FTP protocol. The ship receiving end receives the first mail slice to the c-th mail slice, and obtains a mails to be transmitted through the first mail slice to the c-th mail slice; Step S33: If the test fails, the ship sending end issues an information transmission warning and stops transmitting the first mail slice to the cth mail slice to the ship receiving end; The step S32 further includes the following specific steps: Step S321: the ship transmitting end sends a SYN packet to the ship receiving end; Step S322: The ship sending end obtains the SYN packet. After receiving the encrypted SYN-ACK packet, the ship receiving end needs to decrypt the encrypted SYN-ACK. If the decryption is completed, the test passes, otherwise the test fails.

[0019] In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.

[0020] Embodiment 2 See also Figure 2 , based on another concept of the same invention, a ship mail communication system based on automatic slicing is now proposed, the communication system includes a data acquisition module, a data slicing module, a data transmission module and a server, the data acquisition module, the data slicing module and the data transmission module are respectively connected to the server, and the server controls the data acquisition module, the data slicing module and the data transmission module respectively; The data acquisition module obtains the target data transmission period, obtains the mails to be transmitted generated by the ship within the target data transmission period, obtains a mails to be transmitted, obtains the mail timeliness coefficient corresponding to each mail to be transmitted, and arranges them in descending order to obtain a mail timeliness priority sorting queue, and obtains the data volume of each mail to be transmitted in the mail timeliness priority sorting queue, and analyzes it in combination with the mail timeliness priority sorting queue to obtain a mail data volume sorting queue, and defines the mail timeliness priority sorting queue and the mail data volume sorting queue as mail transmission basic data; The process of ship mail communication is divided into multiple data transmission time periods, the time value corresponding to the current time is obtained as the reference time value, and the data transmission time period closest to the reference time value is obtained as the target data transmission time period; It should be noted here that: In this application, the duration corresponding to the data transmission period may be 5 minutes in this application; Obtain the mails to be transmitted generated by the target ship during the target data transmission period respectively, obtain a mails to be transmitted, and randomly select one mail to be transmitted from the a mails to be transmitted as a sample mail to be transmitted; It should be noted here that: In this application, a is the number of emails to be transmitted generated during the target data transmission period, and a is an integer greater than 0; Analyze the sample files to be transmitted and obtain the email timeliness coefficient corresponding to the sample files to be transmitted; The details are as follows: The generation time of the sample mail to be transmitted in the sending ship is obtained to obtain the first mail transmission time value; The latest receiving time of the sample mail to be transmitted in the receiving ship is obtained to obtain a second mail transmission time value; Get the base time value; The reference time value, the first mail transmission time value and the second mail transmission time value are calculated to obtain the mail time efficiency coefficient corresponding to the sample bag transmission file; Calculate the mail efficiency coefficient corresponding to the sample bag transmission file. The specific formula is as follows: ; Among them, Yjs is the mail time efficiency coefficient corresponding to the sample bag transmission file, Sj1 is the first mail transmission time value, Sj2 is the second mail transmission time value, and Sjj is the reference time value; Repeat the process of obtaining the mail time efficiency coefficients corresponding to the sample bag transmission files, and obtain the mail time efficiency coefficients corresponding to each mail to be transmitted, to obtain a mail time efficiency coefficients; Arrange the a email timeliness coefficients in descending order according to their numerical values ​​to obtain the email timeliness priority sorting queue; The data volume of each email to be transmitted in the email time-efficiency priority sorting queue is obtained respectively, and the data volume is analyzed in combination with the email time-efficiency priority sorting queue to obtain the email data volume sorting queue; It should be noted here that: In the mail time priority sorting queue, the mail to be transmitted that ranks first is in the first priority, the mail to be transmitted that ranks second is in the second priority, and so on, and the mail to be transmitted that ranks last is in the ath priority; The details are as follows: Mark the data volume corresponding to the first-ranked email to be transmitted in the email time priority sorting queue as the first-priority data volume; Obtain the data volume corresponding to the second-ranked email to be transmitted in the email time priority sorting queue, and calculate the sum of the data volume corresponding to the second-ranked email to be transmitted and the first-ranked data volume to obtain the second-ranked data volume; Obtain the data volume corresponding to the third-ranked email to be transmitted in the email time priority sorting queue, and calculate the sum of the data volume corresponding to the third-ranked email to be transmitted and the second-ranked data volume to obtain the third-ranked data volume; Repeat the above process of obtaining the first-order data volume, the second-order data volume, and the third-order data volume, respectively obtain the data volume corresponding to each order in the mail timeliness priority sorting queue, obtain the fourth-order data volume to the a-th-order data volume, mark the first-order to the a-th-order in the mail timeliness priority sorting queue with the first-order data volume to the a-th-order data volume, respectively, and obtain the mail data volume sorting queue; Define the mail time priority sorting queue and mail data volume sorting queue as the basic data for mail transmission; The data acquisition module acquires the basic data of the piece transmission and transmits it to the data slicing module and the data transmission module; The data slicing module divides multiple emails to be transmitted into multiple email slices according to the basic email transmission data, and performs edge segmentation on each email slice to obtain email slice division data; Obtain basic data on mail transmission, and obtain mail time priority sorting queues and mail data volume sorting queues based on the basic data on mail transmission; Mark b slicing points in the mail data volume sorting queue, and the difference in data volume between every two consecutive slicing points is equal and is the characteristic interval data volume, and name the b slicing points as the first slicing point to the bth slicing point respectively; It should be noted here that: In this application, b is the number value corresponding to the slice division point, and b is an integer greater than 0; For example: suppose that the three consecutive slice division points marked in the mail data volume sorting queue are the first slice division point, the second slice division point and the third slice division point, and the data of the first slice division point, the second slice division point and the third slice division point are obtained respectively to obtain the first cut-point data volume, the second cut-point data volume and the third cut-point data volume; The difference between the first tangent point data volume and the second tangent point data volume is calculated, and the absolute value of the obtained difference is taken to obtain the first phase difference data volume; the difference between the second tangent point data volume and the third tangent point data volume is calculated, and the absolute value of the obtained difference is taken to obtain the second phase difference data volume. The difference between the data volume of each two consecutive slice division points involved here is equal specifically refers to that the first phase difference data volume and the second phase difference data volume are equal in value; Divide the first to-be-transmitted mail to the ath to-be-transmitted mail in the mail data volume sorting queue into c mail slices through the first slice splitting point to the bth slice splitting point, and name them as the first mail slice to the cth mail slice; It should be noted here that: In this application, c is the quantity value corresponding to the mail slice, where c is an integer greater than 0, and c=b-1; The first mail slice to the cth mail slice are obtained as follows: Obtain a mail data volume sorting queue, mark the queue head in the mail data volume sorting queue with the first slice split point, and mark the queue tail in the mail data volume sorting queue with the bth slice split point; See also Figure 3 , between the first slice segmentation point and the bth slice segmentation point, a slice segmentation point is marked for each feature interval data amount, and the slice segmentation points marked between the first slice segmentation point and the bth slice segmentation point are sequentially the second slice segmentation point to the b-1th slice segmentation point; Perform edge segmentation on the first mail slice to obtain the first mail slice: The details are as follows: The complete mail to be transmitted between the first slicing point and the second slicing point is divided into the first mail slice, and the sequence data volume corresponding to the last complete mail to be transmitted between the first slicing point and the second slicing point is obtained, and named as the first characteristic sequence data volume; The sequence data volume corresponding to the last incomplete email to be transmitted between the first slice segmentation point and the second slice segmentation point is obtained, and named as the second characteristic sequence data volume; If the first-order data volume is equal to the data volume corresponding to the second slice segmentation point, the complete email to be transmitted between the first slice segmentation point and the second slice segmentation point is the first email slice; If the first-order data volume is less than the data volume corresponding to the second slice segmentation point, the difference between the second-characteristic-order data volume and the data volume corresponding to the second slice segmentation point is calculated, and the absolute value of the obtained difference is taken to obtain the first segmentation data volume difference; the difference between the second-characteristic-order data volume and the data volume corresponding to the third slice segmentation point is calculated, and the absolute value of the obtained difference is taken to obtain the second segmentation data volume difference; When the first segmentation data volume difference is greater than or equal to the second segmentation data volume difference, the transmitted email corresponding to the second characteristic sequence data volume is divided into a second email slice; When the first segmentation data volume difference is smaller than the second segmentation data volume difference, the transmitted email corresponding to the second characteristic sequence data volume is divided into a third email slice; Perform edge segmentation on the second mail slice to the c-th mail slice respectively to obtain the second mail slice to the c-th mail slice; The first mail slice to the cth mail slice are defined as mail slice partitioning data; The data slicing module acquires the email slicing data and transmits it to the data transmission module; The data transmission module divides the data into segments according to the email slices and transmits the emails to be transmitted; Obtaining mail slice division data, and obtaining the first mail slice to the cth mail slice respectively according to the mail slice division data; The ship sending end performs a transmission test on the ship receiving end. If the test passes, the ship sending end transmits the first mail slice to the c-th mail slice to the ship receiving end through the FTP protocol. The ship receiving end receives the first mail slice to the c-th mail slice, and obtains a mails to be transmitted through the first mail slice to the c-th mail slice; If the test fails, the ship's transmitter issues an information transmission warning and stops transmitting the first mail slice to the cth mail slice to the ship's receiver; The transmission test is as follows: The ship transmitter sends a SYN packet to the ship receiver; The ship's sending end obtains the SYN packet. After receiving the encrypted SYN-ACK packet, the ship's receiving end needs to decrypt the encrypted SYN-ACK. If the decryption is completed, the test passes. If the test fails; It should be noted here that: The FTP protocol involved here is a standard protocol for transferring files on a computer network; The SYN packet involved here is the initial data packet used to establish a connection.

[0021] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well.

Claims

1. A ship mail communication method based on automatic slicing, It is characterized in that include: Step S1: respectively obtain the target data transmission period, obtain the mails to be transmitted generated by the ship within the target data transmission period, obtain a mails to be transmitted, respectively obtain the mail timeliness coefficient corresponding to each mail to be transmitted, and arrange them in descending order to obtain a mail timeliness priority sorting queue, and obtain the data volume of each mail to be transmitted in the mail timeliness priority sorting queue, and analyze it in combination with the mail timeliness priority sorting queue to obtain a mail data volume sorting queue, and define the mail timeliness priority sorting queue and the mail data volume sorting queue as mail transmission basic data; Step S2: dividing the multiple mails to be transmitted into multiple mail slices according to the mail transmission basic data, and performing edge segmentation on each mail slice to obtain mail slice division data; Step S3: Transmit the emails to be transmitted according to the email slice data division.

2. A ship mail communication method based on automatic slicing according to claim 1, It is characterized in that The step S1 further includes the following specific steps: Step S11: The process of ship mail communication is divided into multiple data transmission time periods, the time value corresponding to the current time is obtained as the reference time value, and the data transmission time period closest to the reference time value is obtained as the target data transmission time period; Step S12: respectively obtaining the mails to be transmitted generated by the target ship during the target data transmission period, obtaining a mails to be transmitted, and randomly selecting one mail to be transmitted from the a mails to be transmitted as a sample mail to be transmitted; Step S13: Analyze the sample file to be transmitted to obtain the email timeliness coefficient corresponding to the sample file to be transmitted; Step S14: Obtain the mail timeliness coefficient corresponding to each mail to be transmitted respectively, and obtain a mail timeliness coefficients; Step S15: Arrange the a mail timeliness coefficients in descending order according to their numerical values ​​to obtain a mail timeliness priority sorting queue; Step S16: respectively obtaining the data volume of each to-be-transmitted email in the email time-efficiency priority sorting queue, and analyzing it in combination with the email time-efficiency priority sorting queue to obtain an email data volume sorting queue; Step S17: defining the mail time priority sorting queue and the mail data volume sorting queue as mail transmission basic data.

3. A ship mail communication method based on automatic slicing according to claim 2, It is characterized in that The step S13 further includes the following specific steps: Step S131: obtaining the generation time of the sample mail to be transmitted in the sending ship to obtain a first mail transmission time value; Step S132: obtaining the latest receiving time of the sample mail to be transmitted in the receiving ship to obtain a second mail transmission time value; Step S133: Obtaining a reference time value; Step S134: Calculate the reference time value, the first mail transmission time value and the second mail transmission time value to obtain the mail time efficiency coefficient corresponding to the sample bag transmission file; Calculate the mail efficiency coefficient corresponding to the sample bag transmission file. The specific formula is as follows: ; Among them, Yjs is the mail time efficiency coefficient corresponding to the sample bag transmission file, Sj1 is the first mail transmission time value, Sj2 is the second mail transmission time value, and Sjj is the reference time value.

4. A ship mail communication method based on automatic slicing according to claim 2, It is characterized in that The step S16 further includes the following specific steps: Step S161: marking the data volume corresponding to the first-ranked email to be transmitted in the email time priority sorting queue as the first-priority data volume; Step S162: obtaining the data volume corresponding to the second-ranked email to be transmitted in the email time priority sorting queue, and calculating the sum of the data volume corresponding to the second-ranked email to be transmitted and the first-ranked data volume to obtain the second-ranked data volume; Step S163: obtaining the data volume corresponding to the third-ranked email to be transmitted in the email time priority sorting queue, and calculating the sum of the data volume corresponding to the third-ranked email to be transmitted and the second-ranked data volume to obtain the third-ranked data volume; Step S164: Obtain the data volume corresponding to each priority in the email timeliness priority sorting queue respectively, and obtain the fourth priority data volume to the ath priority data volume, and mark the first priority to the ath priority in the email timeliness priority sorting queue respectively to obtain the email data volume sorting queue.

5. A ship mail communication method based on automatic slicing according to claim 1, It is characterized in that The step S2 further includes the following specific steps: Step S21: Obtaining basic email transmission data, and obtaining an email timeliness priority sorting queue and an email data volume sorting queue according to the basic email transmission data; Step S22: Mark b slicing points in the mail data volume sorting queue, and the data volume difference between every two consecutive slicing points is equal and is the characteristic interval data volume, and the b slicing points are named as the first slicing point to the bth slicing point respectively; Step S23: Divide the first to-be-transmitted mail to the ath to-be-transmitted mail in the mail data volume sorting queue into c mail slices through the first slice segmentation point to the bth slice segmentation point, and name them as the first mail slice to the cth mail slice; Step S24: define the first mail slice to the cth mail slice as mail slice division data.

6. A ship mail communication method based on automatic slicing according to claim 5, It is characterized in that The step S23 further includes the following specific steps: Step S231: obtaining a mail data volume sorting queue, marking the head of the queue in the mail data volume sorting queue with the first slicing split point, and marking the tail of the queue in the mail data volume sorting queue with the bth slicing split point; Step S232: between the first slice segmentation point and the b-th slice segmentation point, a slice segmentation point is marked for each characteristic interval data amount, and the slice segmentation points marked between the first slice segmentation point and the b-th slice segmentation point are sequentially the second slice segmentation point to the b-1-th slice segmentation point; Step S233: Perform edge segmentation on the first mail slice to obtain the first mail slice: Step S234: performing edge segmentation on the second mail slice to the c-th mail slice respectively to obtain the second mail slice to the c-th mail slice.

7. A ship mail communication method based on automatic slicing according to claim 6, It is characterized in that The step S233 further includes the following specific steps: Step S2331: Slice the complete emails to be transmitted between the first slicing point and the second slicing point into first email slices, and obtain the sequence data volume corresponding to the last complete email to be transmitted between the first slicing point and the second slicing point, and name it as the first characteristic sequence data volume; Step S2332: obtaining the sequence data volume corresponding to the last incomplete email to be transmitted between the first slice segmentation point and the second slice segmentation point, and naming it as the second characteristic sequence data volume; Step S2333: If the first-order data volume is equal to the data volume corresponding to the second slice segmentation point, the complete email to be transmitted between the first slice segmentation point and the second slice segmentation point is the first email segment; Step S2334: if the first-order data volume is less than the data volume corresponding to the second slice segmentation point, calculate the difference between the second-order data volume and the data volume corresponding to the second slice segmentation point, and take the absolute value of the obtained difference to obtain the first segmentation data volume difference; Calculate the difference between the second feature sequence data amount and the data amount corresponding to the third slice segmentation point, and take the absolute value of the obtained difference to obtain the second segmentation data amount difference; Step S2335: when the first segmentation data volume difference is greater than or equal to the second segmentation data volume difference, dividing the transmitted email corresponding to the second characteristic sequence data volume into a second email slice; Step S2336: When the first segmentation data volume difference is smaller than the second segmentation data volume difference, the transmission email corresponding to the second characteristic sequence data volume is divided into a third email slice.

8. A ship mail communication method based on automatic slicing according to claim 1, It is characterized in that The step S3 further includes the following specific steps: Step S31: obtaining mail slice division data, and obtaining the first mail slice to the cth mail slice respectively according to the mail slice division data; Step S32: the ship sending end performs a transmission test on the ship receiving end. If the test passes, the ship sending end transmits the first mail slice to the c-th mail slice to the ship receiving end through the FTP protocol. The ship receiving end receives the first mail slice to the c-th mail slice, and obtains a mails to be transmitted through the first mail slice to the c-th mail slice; Step S33: If the test fails, the ship sending end issues an information transmission warning and terminates the transmission of the first mail slice to the cth mail slice to the ship receiving end.

9. A ship mail communication method based on automatic slicing according to claim 8, It is characterized in that The step S32 further includes the following specific steps: Step S321: the ship transmitting end sends a SYN packet to the ship receiving end; Step S322: The ship sending end obtains the SYN packet. After receiving the encrypted SYN-ACK packet, the ship receiving end needs to decrypt the encrypted SYN-ACK. If the decryption is completed, the test passes, otherwise the test fails.

10. A ship mail communication system based on automatic slicing, applicable to a ship mail communication method based on automatic slicing as claimed in any one of claims 1 to 9, It is characterized in that The communication system comprises: Data acquisition module: used to sort the mail time priority queue and mail data volume queue respectively, and obtain the basic data of mail transmission; Data slicing module: used to divide multiple emails to be transmitted into multiple email slices according to the basic data of email transmission, and perform edge segmentation on each email slice to obtain email slice division data; Data transmission module: used to transmit the emails to be transmitted according to the email slice data division.

Citation Information

Patent Citations

  • Mail forwarding method, device and equipment and storage medium

    CN111526081A

  • Cross-network data secure transmission system and method

    CN113114589A

  • Equipment production test control method, equipment and storage medium

    CN113742704A

  • Intelligent ship data transmission method, device, equipment and medium

    CN116887216A

  • Peripheral equipment

    JP1998150464A