CN104202124B - A kind of erp packet communications method - Google Patents

A kind of erp packet communications method Download PDF

Info

Publication number
CN104202124B
CN104202124B CN201410465029.7A CN201410465029A CN104202124B CN 104202124 B CN104202124 B CN 104202124B CN 201410465029 A CN201410465029 A CN 201410465029A CN 104202124 B CN104202124 B CN 104202124B
Authority
CN
China
Prior art keywords
data
transmission
sent
segment
predetermined threshold
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.)
Expired - Fee Related
Application number
CN201410465029.7A
Other languages
Chinese (zh)
Other versions
CN104202124A (en
Inventor
曹毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Dingli Asset Management Co ltd
Original Assignee
Chengdu Biz United Information 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 Chengdu Biz United Information Technology Co Ltd filed Critical Chengdu Biz United Information Technology Co Ltd
Priority to CN201410465029.7A priority Critical patent/CN104202124B/en
Publication of CN104202124A publication Critical patent/CN104202124A/en
Application granted granted Critical
Publication of CN104202124B publication Critical patent/CN104202124B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

In order to improve the efficiency of transmission of ERP packets, the invention provides a kind of erp packet communications method.This method includes:(1) it is natural number to be divided into N groups and increase group number P, N for every group of data packet to be sent;When N is more than 1, preceding 1 group of N data volume is the data volume of S and N groups less than S;(2) it is natural number to be divided into M sections and increase segment number Q, M for every segment data the N groups data;When M is more than 1, preceding 1 section of M data volume is L;(3) when L is more than or equal to predetermined threshold value, concurrently each segment data is compressed, once and the compression of certain segment data terminate, then continue the compression of the lower one piece of data of group where the segment data;(4) result obtained after transmitting step (3) processing.The above method drastically increases the treatment effeciency of compression or transmission by the way of parallel batch processing.

Description

A kind of erp packet communications method
Technical field
The present invention relates to data communication technology field.More particularly, to a kind of erp packet communications method.
Background technology
Today's society comes into information-based, digital times, and it is daily that numerical data and digital communication have become people Inalienable part in life, the development of e-commerce technology and reaches its maturity, ERP (EnterpriseResourcePlanning, Enterprise Resources Plan) systematic difference is also increasingly popularized.
ERP system is a highly integrated system, data shared resources between each service sub-system, and shared data Data volume increase with the soaring of portfolio in the geometry order of magnitude, subsystem increase and the trend complicated also make each subsystem Logical relation between system becomes increasingly complex.
The need for shorter transmission time, people are studied the process of data transfer, find transmission time There is close contact with the size for the data transmitted.When the data transmitted are larger, the time of data transfer consumption is also It is more;Conversely, when the data transmitted are smaller, the time of data transfer consumption is also just less.Based on this theory, Ren Men When sending data, data are compressed, data transmission period is reduced by reducing data volume.But, compressing data Method needs to be compressed data and decompression, and this two processing equally also will consume the regular hour, therefore this The effect of method reduction data transmission period is limited.
The Chinese patent application of Application No. 201110459118.7 discloses a kind of data transmission method and system, can be with Data volume according to be transmitted data is made whether to be compressed the selection of processing.So, when the data to be transmitted data When measuring larger, processing can be compressed, and when the data volume to be transmitted data is smaller, is handled without compression.But, When data volume waiting for transmission is larger, this method can cause data to be compressed to be compressed by prolonged wait, The speed of packet generation is influenceed, and then reduces the efficiency of ERP system.
The content of the invention
In order to overcome the above-mentioned deficiency of prior art, the invention provides a kind of erp packet communications method.This method bag Include:
(1) it is natural number to be divided into N groups and increase group number P, N for every group of data packet to be sent;When N is more than 1, The data volume of preceding N-1 groups is that the data volume of S and N groups is less than S;
(2) it is natural number to be divided into M sections and increase segment number Q, M for every segment data the N groups data;It is preceding when M is more than 1 M-1 sections of data volume is L;
(3) when L is more than or equal to predetermined threshold value, concurrently each segment data is compressed, once and certain segment data pressure Sheepshank beam, the then compression of the lower one piece of data of group where continuing the segment data;
(4) result obtained after transmitting step (3) processing.
Packet to be sent is carried out after this processing, can make data sending terminal need not be according to the original order of data Be transmitted, data receiver also without first receive complete some errorless data field could receive next field and then Combination is reduced into packet.That is, the above method of the present invention drastically increases data sending terminal and data receiver Packet communication ability, and farthest reduce every one piece of data and receive between operation and operated per one piece of data and send Between stand-by period.
Further, also include between the step (1) and (2):Judge the magnitude relationship between S and predetermined threshold value:Such as Fruit S is less than predetermined threshold value, then directly carries out step (4).
Further, also include judging the magnitude relationship between S and predetermined threshold value between the step (1) and (2):If S is more than or equal to predetermined threshold value, then after the result obtained after transmitting step (3) processing, the step (4) also includes:Pass Defeated receiving terminal processing mark, the receiving terminal processing mark is included whether as compressed data and ending identifier.
Further, the step (4) includes:
(4.1) transmission intercal time T1 is set;
(4.2) one piece of data, calculating network QoS are sent;
(4.3) when QoS is less than predetermined threshold value, the transmission intercal time is set as 2T1, and repeat step (4.2) is until all Data to be sent are sent;
(4.4) when QoS is more than or equal to predetermined threshold value, repeat step (4.2) is until all data to be sent have been sent Finish.
Further, methods described also includes:After receiving terminal receives data, each segment data is cached first, then when connecing When receiving receiving terminal processing mark, judge whether receiving terminal processing mark includes the mark for representing compressed data, and judge whether Decompressed accordingly.
Further, the formatted file in format library set in advance, in data to be sent, removes form number According to part, the first data division is obtained;Data are transmitted, the data of the transmission include first data division.
Further, when first data division includes integer data, the integer data is used into binary system shape Formula is expressed as after numerical value being handled and being transmitted again.
Further, when first data division includes at least two data, by least two data It is transmitted after merging.
Further, when the format library includes at least two formatted files, the transmission packet is included:The transmission Data include first data division and configured information, the configured information is used to indicate the data the to be transmitted correspondence Formatted file so that the data sending terminal determines first data division corresponding form text according to the configured information Part.
Further, when the form of current data to be sent is account and password, also include in the data of transmission For indicating that formatted file is account and the configured information of password.
Beneficial effects of the present invention are as follows:
(1) treatment effeciency of compression or transmission is drastically increased by the way of parallel batch processing, is changed existing Situation during serial mode transmission cost is used in technology;
(2) according to current network QoS, the data volume for sending data every time can be dynamically adjusted, and then more reasonably, more fill Divide ground using the intranet resources of ERP system.
Brief description of the drawings
Fig. 1 shows erp system data bag means of communication flow charts according to a preferred embodiment of the invention.
Embodiment
As shown in figure 1, the erp packet communication methods of the present invention comprise the following steps:
Step 100:It is natural number to be divided into N groups and increase group number P, N for every group of data packet to be sent;When N is big When 1, the data volumes of preceding N-1 groups is that the data volume of S and N groups is less than S;
Step 200:It is natural number to be divided into M sections and increase segment number Q, M for every segment data the N groups data;When M is more than 1 When, first M-1 sections data volume is L;
Step 300:When L is more than or equal to predetermined threshold value, concurrently each segment data is compressed, once and certain hop count Terminate according to compression, then the compression of the lower one piece of data of group where continuing the segment data;
Step 400:The result obtained after the processing of transmitting step 300.
In the preferred embodiment of the invention, above-mentioned N and M are 8 integral multiple.Such be provided with is beneficial to be directly based upon ICP/IP protocol carries out data transmission.Wherein, in step 100, the group number P of last group is equal in N, and step 200, last The segment number Q of section is equal to M.
Wherein, predetermined threshold value can be set and be changed according to actual conditions, and the present invention is not limited herein.
It is understood that being compressed to the data to be transmitted after processing, the data volume of the data can diminish.In order to So that receiving terminal learns whether the data are compressed, and it is general in the data all to include a compressing mark, for identifying the number According to whether being compressed.
In a preferred embodiment of the invention, also include between step 100 and 200:Judge big between S and predetermined threshold value Small relation:If S is less than predetermined threshold value, step 400 is directly carried out.If on the contrary, S be more than or equal to predetermined threshold value, After the result obtained after the processing of transmitting step 300, the step 400 also includes:Receiving terminal processing mark is transmitted, it is described to connect Receiving end processing mark is included whether as compressed data and ending identifier.As an example it is assumed that in receiving terminal processing mark Identification information can be " 0 " or " 1 ", and " 0 " represents and is uncompressed, and " 1 " is represented to be compressed.So the data to be transmitted are entered After row compression processing, it is possible to change into " 0 " in the receiving terminal processing mark in the data " 1 ".
In other examples, receiving terminal processing mark can be located at front end, rear end in data, can also be located at number Other positions in.Mark is handled with the receiving terminal in the present invention and is subject to explanation and illustration positioned at data end.When positioned at upper When stating other positions, those skilled in the art obtain and implement to change it on the premise of not paying creative work, easily The technical scheme obtained afterwards.
The step 400 includes:
(4.1) transmission intercal time T1 is set;
(4.2) one piece of data, calculating network QoS are sent;
(4.3) when QoS is less than predetermined threshold value, the transmission intercal time is set as 2T1, and repeat step (4.2) is until all Data to be sent are sent;
(4.4) when QoS is more than or equal to predetermined threshold value, repeat step (4.2) is until all data to be sent have been sent Finish.
Data receiver is received after data, and each segment data is cached first, then when receiving receiving terminal processing mark, is sentenced Whether disconnecting receiving end processing mark includes the mark for representing compressed data, and judges whether to corresponding decompression.
Wherein, it can preset in corresponding format library, format library and include in data sending terminal and data receiver The formatted file of at least one.
For example, can set formatted file is, account=string, password=shortint
It is in the data to be transmitted:When account=json, password=1234, it is possible to remove formatted data portion Point, that is, account and password, therefore, the first obtained data division is:
json,1234。
Data receiver transmits data to data sending terminal, and the data of the transmission include first data division.Phase In the technology of pass, data receiver is that whole data are transmitted to data sending terminal, including formatted data part, and the present invention is implemented Example not transport format data part.
Illustrated with above-mentioned example, in correlation technique, the data of transmission are:
Account=json, password=1234
And the data of transmission of the embodiment of the present invention are:
json,1234。
The present embodiment can reduce the data volume of transmission by removing the formatted data part in the data to be transmitted.And And, due to only transmitting partial content, even if cracker obtains these data and can not know the purposes of these data, naturally With secrecy effect, confidentiality is improved.
Data volume can be reduced above by the first data division of transmission, further, is carried out when to the first data division After optimization processing, data volume can also be further reduced.
Preferably, when data receiver includes integer data in first data division, the integer data is adopted It is expressed as being transmitted after numerical value with binary mode.For example, in correlation technique, the data of transmission use character string mode table Show, described above 1234 represented with character string mode after will take 4 bytes (byte) space.And in the present embodiment, will be upper 1234 stated are expressed as the space for only needing to take 2 bytes during numerical value with binary mode, reduce further data volume.This reality Example is applied by the way that the integer data of transmission is expressed as into binary numerical value, data volume can be further reduced.
Preferably, when data receiver includes at least two position data in first data division, by described in extremely Few two position data are transmitted after merging.In actual transmissions data, some data are potentially included, for example, to represent It is specific as 1 represents it is to represent no with 0 during "Yes" or "No", it is possible to be indicated with the data of 1.
When the data to be transmitted include multiple data, for example, the data to be transmitted include it is multiple with, no represent , when such as including sex, no content of wedding.In correlation technique, each bit data will take a byte.And in the present embodiment Many bit datas can be merged, many bit datas take a byte jointly.For example, when the data to be transmitted include 8 bytes will be taken during 8 bit data, in correlation technique, and this 8 bit data will be merged in the present embodiment, 1 is only taken up Individual byte.The present embodiment can further reduce data volume by the way that the position data of transmission are merged.
In another embodiment, to transmit data may have different forms, in order to which data sending terminal can be correct Recover data, configured information can be included in the data of transmission.
Data receiver transmits data to data sending terminal, and the data of the transmission include first data division and referred to Show information, the configured information is used to indicate the corresponding formatted file of the data to be transmitted, so that the data sending terminal The corresponding formatted file of first data division is determined according to the configured information.Set in data receiver and data sending terminal Multiple formatted files can be included in the format library put, for example, a formatted file represents account and password, another form text Part represents use information, and the data such as to be transmitted include file size and the time used.
When the form of the data currently to be transmitted is account and password, it can also include being used to refer in the data of transmission It is account and the configured information of password to show formatted file, and such data sending terminal can determine corresponding lattice according to the configured information Formula file, and then the original data to be transmitted can be recovered according to the first data division of formatted file and reception.This reality Example is applied by increasing configured information, the corresponding data of different-format file can be transmitted, application is improved.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (8)

1. a kind of erp packet communications method, it is characterised in that including:
(1) it is natural number to be divided into N groups and increase group number P, N for every group of data packet to be sent;When N is more than 1, preceding N- 1 group of data volume is that the data volume of S and N groups is less than S;
(2) it is natural number to be divided into M sections and increase segment number Q, M for every segment data the N groups data;It is first M-1 sections when M is more than 1 Data volume be L;
(3) when L is more than or equal to predetermined threshold value, concurrently each segment data is compressed, once and certain segment data compression knot Beam, the then compression of the lower one piece of data of group where continuing the segment data;
(4) result obtained after transmitting step (3) processing;
Wherein, also include judging the magnitude relationship between S and predetermined threshold value between the step (1) and (2):If S be more than or Equal to predetermined threshold value, then after the result obtained after transmitting step (3) processing, the step (4) also includes:Transmit receiving terminal Processing mark, the receiving terminal processing mark is included whether as compressed data and ending identifier.
2. according to the method described in claim 1, it is characterised in that the step (4) includes:
(4.1) transmission intercal time T1 is set;
(4.2) one piece of data, calculating network QoS are sent;
(4.3) when QoS is less than predetermined threshold value, the transmission intercal time is set as 2T1, repeat step (4.2) is until all pending Data are sent to be sent;
(4.4) when QoS is more than or equal to predetermined threshold value, repeat step (4.2) is until all data to be sent are sent.
3. according to the method described in claim 1, it is characterised in that methods described also includes:It is first after receiving terminal receives data Each segment data is first cached, then when receiving receiving terminal processing mark, judges whether receiving terminal processing mark includes representing pressure The mark of contracting data, and judge whether to corresponding decompression.
4. according to the method described in claim 1, it is characterised in that according to the formatted file in format library set in advance, In data to be sent, formatted data part is removed, the first data division is obtained;Data are transmitted, the data of the transmission include First data division.
5. method according to claim 4, it is characterised in that, will when first data division includes integer data The integer data is expressed as after numerical value being handled and being transmitted again using binary form.
6. the method according to claim 4 or 5, it is characterised in that include at least two in first data division During data, it is transmitted after at least two data are merged.
7. method according to claim 4, it is characterised in that when the format library includes at least two formatted files, The transmission packet is included:The data of the transmission include first data division and configured information, and the configured information is used In the corresponding formatted file of data for indicating the transmission, so that the data sending terminal is according to being determined the configured information The corresponding formatted file of first data division.
8. according to the method described in claim 1, it is characterised in that in the form of current data to be sent be account and password When, also include being used to indicate that formatted file is account and the configured information of password in the data of transmission.
CN201410465029.7A 2014-09-12 2014-09-12 A kind of erp packet communications method Expired - Fee Related CN104202124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410465029.7A CN104202124B (en) 2014-09-12 2014-09-12 A kind of erp packet communications method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410465029.7A CN104202124B (en) 2014-09-12 2014-09-12 A kind of erp packet communications method

Publications (2)

Publication Number Publication Date
CN104202124A CN104202124A (en) 2014-12-10
CN104202124B true CN104202124B (en) 2017-10-10

Family

ID=52087362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410465029.7A Expired - Fee Related CN104202124B (en) 2014-09-12 2014-09-12 A kind of erp packet communications method

Country Status (1)

Country Link
CN (1) CN104202124B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107306444A (en) * 2016-04-25 2017-10-31 中兴通讯股份有限公司 Send the method and device of data
CN110620816B (en) * 2019-09-16 2021-11-05 杭州比孚科技有限公司 Inter-group communication method for ships

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932018A (en) * 2009-06-18 2010-12-29 鼎桥通信技术有限公司 RLC data transmission method of HSDPA system
CN102255713A (en) * 2011-07-24 2011-11-23 哈尔滨工程大学 Data packets of underwater sound sensor network and transmission method
CN103188247A (en) * 2011-12-31 2013-07-03 深圳市金蝶友商电子商务服务有限公司 Method and system of data transmission
CN103188279A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Method and device for downloading file from neighbor nodes through peer-to-peer network
CN103605159A (en) * 2013-11-13 2014-02-26 长江大学 A method for parallel compression of massive seismic data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932018A (en) * 2009-06-18 2010-12-29 鼎桥通信技术有限公司 RLC data transmission method of HSDPA system
CN102255713A (en) * 2011-07-24 2011-11-23 哈尔滨工程大学 Data packets of underwater sound sensor network and transmission method
CN103188279A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Method and device for downloading file from neighbor nodes through peer-to-peer network
CN103188247A (en) * 2011-12-31 2013-07-03 深圳市金蝶友商电子商务服务有限公司 Method and system of data transmission
CN103605159A (en) * 2013-11-13 2014-02-26 长江大学 A method for parallel compression of massive seismic data

Also Published As

Publication number Publication date
CN104202124A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN101146102B (en) HDLC data uplink and downlink method and communication device in RRU network
CN105653484B (en) A kind of deblocking compression multi-channel transmission method
CN109756536A (en) A kind of method, apparatus and system of data transmission
US10396921B2 (en) Multi-lane synchronization method, synchronization apparatus and system, and computer storage medium
CN1340255A (en) Header compression in real time services
CN108512785B (en) Data transmission protocol method
US10015285B2 (en) System and method for multi-stream compression and decompression
CN102291398A (en) Data compression and decompression method, device and system in wireless communication system
CN104202124B (en) A kind of erp packet communications method
CN104156334A (en) Serial port self-adaption data transparent transmission protocol for multimachine communication
CN108304335A (en) A method of the indefinite long message of serial ports is received by DMA
CN105553630A (en) Multi-channel data integration method of aviation flight parameters
WO2022063058A1 (en) Netconf protocol-based transmission method, device and storage medium
CN106716392B (en) Stack timing adjustment for serial communication
CN102195750B (en) Data transfer device and data transfer system
CN101650872B (en) System and method for collecting power utilization information
CN109756293A (en) The method and physical chip of data are handled in a kind of Ethernet
CN115982083A (en) Method, device and system for transmitting data between FPGA chips and storage medium
CN108092746A (en) A kind of serial port communication method and system
CN105843759B (en) A kind of multi-serial communication method based on HDLC
CN101374145B (en) Method and apparatus for adapting velocity
CN111030904B (en) Multi-path CAN bus message real-time processing method under multi-level communication
CN113542377A (en) Method and system for downloading code streams of different formats to FPGA
US8289996B2 (en) Multi-purpose PDU container for delineating PDU datagrams and PDU datagram attributes in an 8B/10B coded system
JP6290631B2 (en) Wireless transmission system, wireless transmission device, and wireless transmission method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 610000 No. 25 Qin Fang street, hi tech Development Zone, Sichuan, Chengdu

Patentee after: CHENGDU BOZHI WEIXUN INFORMATION TECHNOLOGY CO.,LTD.

Address before: 610000 No. 25 Qin Fang street, hi tech Development Zone, Sichuan, Chengdu

Patentee before: CHENGDU BIZ-UNITED INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190930

Address after: 400,000 Chongqing Jiangbei District Haier Road 319 2-2-1-61 (Two Road Cuntan Bonded Port Area)

Patentee after: Chongqing Steady Technology Co.,Ltd.

Address before: 610000 No. 25 Qin Fang street, hi tech Development Zone, Sichuan, Chengdu

Patentee before: CHENGDU BOZHI WEIXUN INFORMATION TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right

Effective date of registration: 20201217

Address after: 233000 Anhui Bengbu Wuhe County Economic Development Zone Industrial Acceleration Center 3, 4 level

Patentee after: WUHE ZHIKAI ENVIRONMENTAL PROTECTION TECHNOLOGY Co.,Ltd.

Address before: 400000 2-2-1-61 319 Haier Road, Jiangbei District, Chongqing.

Patentee before: Chongqing Steady Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210114

Address after: 2-2-1-61, No. 319, Haier Road, Jiangbei District, Chongqing

Patentee after: Chongqing Steady Technology Co.,Ltd.

Address before: 233000 Anhui Bengbu Wuhe County Economic Development Zone Industrial Acceleration Center 3, 4 level

Patentee before: WUHE ZHIKAI ENVIRONMENTAL PROTECTION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210609

Address after: 3 / F, building 2, no.966, north section of Tianfu Avenue, high tech Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu Dingli Asset Management Co.,Ltd.

Address before: 2-2-1-61, No. 319, Haier Road, Jiangbei District, Chongqing

Patentee before: Chongqing Steady Technology Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171010