CN107995036A - Data transmission method, device, server and readable storage medium storing program for executing - Google Patents

Data transmission method, device, server and readable storage medium storing program for executing Download PDF

Info

Publication number
CN107995036A
CN107995036A CN201711244319.9A CN201711244319A CN107995036A CN 107995036 A CN107995036 A CN 107995036A CN 201711244319 A CN201711244319 A CN 201711244319A CN 107995036 A CN107995036 A CN 107995036A
Authority
CN
China
Prior art keywords
data
network
user terminal
sent
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711244319.9A
Other languages
Chinese (zh)
Other versions
CN107995036B (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.)
Hangzhou Electronic Soul Network Technology Co Ltd
Original Assignee
Hangzhou Electronic Soul Network 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 Hangzhou Electronic Soul Network Technology Co Ltd filed Critical Hangzhou Electronic Soul Network Technology Co Ltd
Priority to CN201711244319.9A priority Critical patent/CN107995036B/en
Publication of CN107995036A publication Critical patent/CN107995036A/en
Application granted granted Critical
Publication of CN107995036B publication Critical patent/CN107995036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/083Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for increasing network speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Landscapes

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

Abstract

The embodiment of the present invention provides a kind of data transmission method, device, server and readable storage medium storing program for executing.This method includes:The network environment data of the user terminal is detected, the network environment data includes network delay data and/or network packet loss rate;Judge whether the network environment data is more than predetermined threshold value;If so, then adjusting the transmission number of data packet to be sent according to the network environment data, and the data packet to be sent is sent to by the user terminal based on the transmission number after adjustment.Technical solution provided by the invention can effectively reduce the probability of public network packet loss delay, improve data speed of download.

Description

Data transmission method, device, server and readable storage medium storing program for executing
Technical field
The present invention relates to field of communication technology, in particular to a kind of data transmission method, device, server and can Read storage medium.
Background technology
Generally carried out data transmission between existing server and user terminal by Transmission Control Protocol or udp protocol, through hair A person of good sense, which studies, to be found, if packet loss, the situation of delay occurs in network, if user terminal is not fed back, can be sent always same One data packet, so that it is slow to cause data packet to be downloaded, time-consuming, inefficient.
The content of the invention
In order to overcome above-mentioned deficiency of the prior art, it is an object of the invention to provide a kind of data transmission method, dress Put, server and readable storage medium storing program for executing, can effectively reduce the probability of public network packet loss delay, improve data speed of download.
To achieve these goals, the technical solution that present pre-ferred embodiments use is as follows:
Present pre-ferred embodiments provide a kind of data transmission method, applied to the service being connected with user terminal communication Device, the described method includes:
Detect the network environment data of the user terminal, the network environment data include network delay data and/or Network packet loss rate;
Judge whether the network environment data is more than predetermined threshold value;
If so, then adjusting the transmission number of data packet to be sent according to the network environment data, and it is based on after adjusting Transmission number the data packet to be sent is sent to the user terminal.
In present pre-ferred embodiments, the network environment data of the detection user terminal includes:
The detection request for carrying network detection data packet is sent to the user terminal, so that the user terminal returns The detection response message of network detection data packet is carried to be responded to the detection request;
According to the network environment data of user terminal described in the detection request and the detection response information acquisition.
It is described to be used according to the detection request and the detection response information acquisition in present pre-ferred embodiments The network environment data of family terminal, including:
According to the network delay data of user terminal described in the detection request and the detection response information acquisition;With/ Or
According to the network packet loss rate of user terminal described in the detection request and the detection response information acquisition;
The network environment number of the user terminal is determined according to the network delay data and/or the network packet loss rate According to.
In present pre-ferred embodiments, the network detection data packet includes stabs at the first time, the first time stamp For representing the sending time of the detection request;
The network delay data of the user terminal according to the detection request and the detection response information acquisition, Including:
Acquisition receives second timestamp detected when asking corresponding detection response message and the detection sound The first time stamp that the detection of network described in message data packet includes is answered, and according to first time stamp and described second Timestamp calculates the transmitting-receiving time interval of the network detection data packet;
The network delay data of the user terminal are calculated according at least one transmitting-receiving time interval.
It is described to be used according to the detection request and the detection response information acquisition in present pre-ferred embodiments The network packet loss rate of family terminal, including:
Count the transmission number of the detection request and the reception number of the detection response message;
According to the transmission number and the network packet loss rate for receiving number and calculating the user terminal.
In present pre-ferred embodiments, the data packet to be sent includes multiple data based on default sequencing Bag, the transmission number that data packet to be sent is adjusted according to the network environment data, and based on the transmission number after adjustment The data packet to be sent is sent to the user terminal by mesh, including:
Same data packet is repeatedly sent in a prefixed time interval respectively based on the default sequencing described User terminal;Or
When detecting data packet packet loss, at the same to the user terminal send the data packet and with the data packet phase Next data packet of adjacent order, and so on, when detecting the receive information of the user terminal feedback, to the use Family terminal sends last data packet sent before the receive information for detecting the user terminal feedback.
In present pre-ferred embodiments, the network packet loss rate and data packet transmission times are configured with the server Correspondence, the either correspondence of the network delay data and data packet transmission times or the network packet loss rate With the weighted data and the correspondence of data packet transmission times of the network delay data.It is described suitable based on the default priority Same data packet is repeatedly sent to the user terminal by sequence in a prefixed time interval respectively, including:
Corresponding data packet transmission times is obtained according to current network packet loss rate, or according to current network delay number According to the corresponding data packet transmission times of acquisition, or the weighted data according to the network packet loss rate and the network delay data Obtain corresponding data packet transmission times;
Based on the default sequencing respectively by same data packet in a prefixed time interval according to the data packet Transmission times is sent to the user terminal.
Present pre-ferred embodiments also provide a kind of data transmission device, applied to the service being connected with user terminal communication Device, described device include:
Detection module, for detecting the network environment data of the user terminal, the network environment data includes network Delayed data and/or network packet loss rate.
Judgment module, for judging whether the network environment data is more than predetermined threshold value.
Sending module is adjusted, for if so, then adjusting the transmission of data packet to be sent according to the network environment data Number, and the data packet to be sent is sent to by the user terminal based on the transmission number after adjustment.
Present pre-ferred embodiments also provide a kind of server, and the server includes:
Storage medium;
Processor;And
Data transmission device, described device be stored in the storage medium and include performed by the processor it is soft Part function module, described device include:
Detection module, for detecting the network environment data of user terminal, the network environment data includes network delay Data and/or network packet loss rate.
Judgment module, for judging whether the network environment data is more than predetermined threshold value.
Sending module is adjusted, for if so, then adjusting the transmission of data packet to be sent according to the network environment data Number, and the data packet to be sent is sent to by the user terminal based on the transmission number after adjustment.
Present pre-ferred embodiments also provide a kind of readable storage medium storing program for executing, and computer is stored with the readable storage medium storing program for executing Program, the computer program realize above-mentioned data transmission method when running.
In terms of existing technologies, the invention has the advantages that:
The embodiment of the present invention provides a kind of data transmission method, device, server and readable storage medium storing program for executing, passes through server The network environment data of user terminal is detected, and when the network environment data is more than predetermined threshold value, according to the network rings The transmission number of border data point reuse data packet to be sent, and based on the transmission number after adjustment by the data packet to be sent It is sent to the user terminal.Thereby, it is possible to effectively reduce the probability of public network packet loss delay, data speed of download is improved.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of application scenarios schematic diagram for the data transmission method that present pre-ferred embodiments provide;
Fig. 2 is a kind of flow diagram for the data transmission method that present pre-ferred embodiments provide;
Fig. 3 is a kind of flow diagram for each sub-steps that the step S210 shown in Fig. 2 includes;
Fig. 4 is a kind of functional block diagram for the data transmission device that present pre-ferred embodiments provide;
Fig. 5 is a kind of structural schematic block diagram for the server that present pre-ferred embodiments provide.
Icon:100- servers;110- buses;120- processors;130- storage mediums;140- bus interface;150- nets Network adapter;160- user interfaces;200- data transmission devices;210- detection modules;220- judgment modules;230- adjustment is sent Module;300- user terminals.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Usually herein The component of the embodiment of the present invention described and illustrated in place's attached drawing can be arranged and designed with a variety of configurations.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiments of the present invention, this area is common All other embodiment that technical staff is obtained without creative efforts, belongs to the model that the present invention protects Enclose.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
A kind of referring to Fig. 1, application scenarios schematic diagram of the data transmission method provided for present pre-ferred embodiments.This In embodiment, the data transmission method is applied to the server 100 communicated to connect with user terminal 300.
The user terminal 300 can be sent or be received signal by modes such as wired or wireless networks, or can be with By signal processing or physical store state is stored as in such as memory.Each user terminal 300 can include hardware, soft The electronic device of the combination of body or embedded logic element or this two or more class component, and be able to carry out by user terminal The 300 suitable functions of implementing or support.Alternatively, the user terminal 300 can a kind of have radio transmission-receiving function Equipment, including indoor or outdoors, hand-held, wearing or mobile unit.For example, the user terminal 300 can be mobile phone (mobile Phone), tablet computer (Pad), the computer with radio transmission-receiving function, virtual reality (Virtual Reality, VR) terminal are set Nothing in standby, augmented reality (Augmented Reality, AR) terminal device, Industry Control (industrial control) Line terminal, the wireless terminal in unmanned (self driving), the wireless end in tele-medicine (remote medical) End, the wireless terminal in intelligent grid (smart grid), the wireless end in transportation safety (transportation safety) End, the wireless terminal in smart city (smart city), wireless terminal in wisdom family (smart home) etc..This Shen Embodiment please does not limit application scenarios.
According to some embodiments of the present invention, user terminal 300 can include:Comprising using processing unit and radio frequency/numerical digit The processing unit of signal processor;Display screen;Secondary or physical bond, the membrane keyboard being covered on display screen or combinations thereof can be included Keypad;SIM card;The memory device of ROM, RAM, flash memory or their any combination can be included Put;Wi-Fi and/or blue tooth interface;Wireless phone interface;Electric power management circuit with relevant battery;USB interface and connection Device;Message management system with relevant microphone, loudspeaker and earphone jack;And various such as cameras, global location The selectable appurtenances of system, accelerator etc..
In embodiments of the present invention, the server 100 should be understood offer processing, data bank, the industry of communications service Business point.For example, server 100 can refer at the single physics with related communication and data storage and document library facility Device is managed, or it can refer to the aggregate of networking or the processor gathered, related network and storing unit, and to software and one Or the application software of service that multiple document library systems and support server 100 are provided is operated.Server 100 can be It is widely different in configuration or performance, but server 100 generally can include one or more central processing unit and storage is single Member.It is wired that server 100 can also include one or more large-scale storage area equipment, one or more power supplys, one or more Or wireless network components, one or more input output assemblies or one or more operating systems, such as, Windows Server、Mac OS X、Unix、Linux、FreeBSD。
Referring to Fig. 2, a kind of flow diagram of the data transmission method provided for present pre-ferred embodiments, the side Method is performed by the server 100 shown in Fig. 1.It should be noted that data transmission method provided in an embodiment of the present invention not with Fig. 2 and particular order as described below are limitation.The idiographic flow of the method is as follows:
Step S210, detects the network environment data of user terminal 300.
In the present embodiment, the network environment data may include network delay data and/or network packet loss rate.Specifically, Referring to Fig. 3, as a kind of embodiment, the step S210 may include following sub-step:
Sub-step S211, the detection request for carrying network detection data packet is sent to the user terminal 300.
In the present embodiment, the server 100 can be sent out in real time or every preset time period to the user terminal 300 Request is surveyed in censorship, and the detection request carries the network detection of the network environment data for detecting the user terminal 300 Data packet.The user terminal 300 is returned to the server 100 after the network detection data packet is received and carried State network detection data packet detection response message with to it is described detection request respond.
Sub-step S212, according to the net of user terminal 300 described in the detection request and the detection response information acquisition Network environmental data.
In detail, the server 100 can be used according to the detection request and the detection response information acquisition The network delay data of family terminal 300 and/or the user according to the detection request and the detection response information acquisition are whole The network packet loss rate at end 300, and determine the user terminal according to the network delay data and/or the network packet loss rate 300 network environment data.
Wherein, the network detection data packet includes stabs at the first time, and the first time stamp is used to represent the detection The sending time of request, the acquisition modes of the network delay data can be that the acquisition of server 100 receives the detection please Network described in the second timestamp during corresponding detection response message and the detection response message is asked to detect data packet bag The first time stamp contained, and the network is calculated according to first time stamp and second timestamp and detects data packet Transmitting-receiving time interval, the network delay data of the user terminal 300 are calculated further according at least one transmitting-receiving time interval.Example Such as, the first time stamp is 12:00:00:00, second timestamp is 12:00:00:03, then the network delay number According to then be 30 milliseconds.
Further, the acquisition modes of the network packet loss rate can be that server 100 counts the hair of the detection request Number and the reception number of the detection response message are sent, institute is then calculated according to the transmission number and the reception number State the network packet loss rate of user terminal 300.For example, the server 100 have sent 100 detection requests, and receive The detection response message number be 50, then the network packet loss rate is then 50/100=50%.
Step S220, judges whether the network environment data is more than predetermined threshold value.
In the present embodiment, the network environment data can be only with the network packet loss rate, can also be only with described Network delay data, or the network packet loss rate and the network delay data can also be used at the same time, specifically can basis Actual demand makes choice.If the network environment data is only with the network packet loss rate, then then judges the network Whether packet loss is more than predetermined threshold value (such as 50%);If the network environment data only with the network delay data, Then judge whether the network delay data are more than predetermined threshold value (such as 100ms), if the network environment data is adopted at the same time With the network packet loss rate and the network delay data, then it is pre- then to judge whether the network packet loss rate is more than at the same time If threshold value (such as 50%), and whether the network delay data are more than predetermined threshold value (such as 100ms).
Step S230, if so, the transmission number of data packet to be sent is then adjusted according to the network environment data, and base The data packet to be sent is sent to the user terminal 300 by the transmission number after adjustment.
In the present embodiment, the data packet to be sent may include multiple data packets based on default sequencing, for example, According to sequencing, it may include data packet A, data packet B, data packet C, data packet D...... are that is, what is sent at first is Data packet A, followed by data packet B, data packet C, data packet D.......
As a kind of embodiment, if the network packet loss rate is more than predetermined threshold value, or the network delay data More than predetermined threshold value, or when the network packet loss rate and the network delay data are both greater than predetermined threshold value, the service Same data packet is repeatedly sent to the user by device 100 in a prefixed time interval respectively based on the default sequencing Terminal 300.For example, data packet A is sent to the user terminal 300 first, if be not received by preset time The receive information that the user terminal 300 is fed back, then continuously send the data packet A twice to institute's user terminal 300, if The feedback of user terminal 300 is still not received by, then is continuously sent the data packet A three times to institute's user terminal 300, with This analogizes, so as to reduce the probability of packet loss.
Alternatively, pair of the network packet loss rate and data packet transmission times is can be configured with the server 100 It should be related to, for example, when the network packet loss rate is 50%, the data packet transmission times is 2, and the network packet loss rate is every afterwards Increase by 10%, the data packet transmission times increase by 1, or network delay data pass corresponding with data packet transmission times System, for example, when the network delay data are 100ms, the data packet transmission times is 2, afterwards the network delay data Often increase 10ms, the data packet transmission times increase by 1, or the network packet loss rate and the network delay data plus Flexible strategy are according to the correspondence with data packet transmission times, for example, the weighting of the network packet loss rate and the network delay data The factor is respectively 0.5, and the weighted value that the network packet loss rate is 50% is 1, the weighted value when network delay data are 100ms For 1, the network delay data often increase 10ms afterwards, and corresponding weighted value increase by 1, the network packet loss rate often increases 10%, corresponding weighted value increase by 1, namely the network packet loss rate is 50%, adding when the network delay data are 100m For flexible strategy according to being 2, the corresponding data packet transmission times of weighted data 2 is 4, and hereafter weighted data often increases by 1, and the data packet is sent Number increase by 1.
Based on above-mentioned correspondence, the server 100 can obtain corresponding data packet according to current network packet loss rate Transmission times, either according to the current corresponding data packet transmission times of network delay data acquisition or according to the network Packet loss and the weighted data of the network delay data obtain corresponding data packet transmission times, and are based on the default priority Same data packet is sent to user's end by order in a prefixed time interval according to the data packet transmission times respectively End 300, it is achieved thereby that according to network packet loss rate and/or network delay data dynamic adjusting data bag transmission times, so as to Enough probabilities for effectively reducing the delay of public network packet loss, improve data speed of download.
As another embodiment, if when detecting data packet packet loss, can be sent at the same time to the user terminal 300 The data packet and next data packet with the data packet adjacent sequential, and so on, until detecting the user During the receive information that terminal 300 is fed back, the reception for detecting that the user terminal 300 is fed back is sent to the user terminal 300 Last data packet sent before information.For example, server 100 sends data packet by public network to the user terminal 300 A, within the time of restriction (such as 50ms), if receiving the feedback of user terminal 300, data are sent to user terminal 300 Wrap B.If within the time of restriction, the feedback of user terminal 300 is not received still, then is sent at the same time to user terminal 300 Data packet A and B, continue to wait the feedback of user terminal 300 in limiting time, if user terminal 300 is not still fed back, Then continue to send data packet A, B, C to user terminal 300, if 300 feedback reception information of user terminal, only to user terminal 300 send data packet C, and so on, so as to effectively reduce the probability of public network packet loss delay, improve data speed of download.
Further, referring to Fig. 4, present pre-ferred embodiments also provide a kind of data transmission device 200, described device It can include:
Detection module 210, for detecting the network environment data of the user terminal 300, the network environment data bag Include network delay data and/or network packet loss rate.
Judgment module 220, for judging whether the network environment data is more than predetermined threshold value.
Sending module 230 is adjusted, for if so, then adjusting the hair of data packet to be sent according to the network environment data Number is sent, and the data packet to be sent is sent to by the user terminal 300 based on the transmission number after adjustment.
It is understood that the concrete operation method of each function module in the present embodiment can refer to above method embodiment The detailed description of middle corresponding steps, it is no longer repeated herein.
Further, present pre-ferred embodiments also provide a kind of readable storage medium storing program for executing, are deposited in the readable storage medium storing program for executing Computer program is contained, the computer program controls server 100 where the readable storage medium storing program for executing to perform when running above-mentioned Data transmission method.
Further, referring to Fig. 5, a kind of structure for implementing the server 100 that preferred embodiment provides for the present invention is shown Meaning block diagram.As shown in figure 5, server 100 can make general bus architecture to realize by bus 110.According to service The concrete application and overall design constraints condition of device 100, bus 110 can include any number of interconnection bus and bridge joint.Always Line 110 is electrically connected to various together, these circuits include processor 120, storage medium 130 and bus interface 140.It is optional Ground, server 100 can be connected the grade of network adapter 150 via bus 110 using bus interface 140.Network adapter 150 Sending and receiving for radiofrequency signal is realized available for the signal processing function for realizing physical layer in server 100, and by antenna. User interface 160 can connect external equipment, such as:Keyboard, display, mouse or control stick etc..Bus 110 can also connect Various other circuits, such as timing source, ancillary equipment, voltage regulator or management circuit are connect, these circuits are abilities Known to domain, therefore no longer it is described in detail.
It can replace, server 100 may also be configured to generic processing system, such as be commonly referred to as chip, the general procedure System includes:The one or more microprocessors of processing function are provided, and at least one of outer of storage medium 130 is provided Portion's memory, it is all these all to be linked together by external bus architecture and other support circuits.
Interchangeable, server 100 can be realized using following:With processor 120, bus interface 140, Yong Hujie The ASIC (application-specific integrated circuit) of mouth 160;And at least a portion of the storage medium 130 in one single chip is integrated in, alternatively, Server 100 can be realized using following:One or more FPGA (field programmable gate array), PLD (programmable logic devices Part), controller, state machine, gate logic, discrete hardware components, any other suitable circuit or to be able to carry out the present invention logical Any combination of the circuit of the described various functions of a piece.
Wherein, processor 120 is responsible for bus 110 and general processing and (including performs and be stored on storage medium 130 Software).Processor 120 can be realized using one or more general processors and/or application specific processor.Processor 120 Example includes microprocessor, microcontroller, dsp processor and the other circuits for being able to carry out software.Should be by software broadly It is construed to represent instruction, data or its any combination, regardless of whether being called it as software, firmware, middleware, microcode, hard Part description language or other.
Storage medium 130 is illustrated as separating with processor 120 in Figure 5, however, those skilled in the art be easy to it is bright In vain, storage medium 130 or its arbitrary portion can be located at outside server 100.For example, storage medium 130 can include passing Defeated line, the carrier waveform modulated with data, and/or the computer product that is separated with radio node, these media can be by Processor 120 is accessed by bus interface 140.Alternatively, storage medium 130 or its arbitrary portion are desirably integrated into processing In device 120, for example, it may be cache and/or general register.
The processor 120 can perform above-described embodiment, specifically, can be stored with the storage medium 130 described Data transmission device 200, the processor 120 can be used for performing the data transmission device 200.
In conclusion the embodiment of the present invention provides a kind of data transmission method, device, server 100 and readable storage medium Matter, the network environment data of user terminal 300 is detected by server 100, and is more than default threshold in the network environment data During value, the transmission number of data packet to be sent is adjusted according to the network environment data, and based on the transmission number after adjustment The data packet to be sent is sent to the user terminal 300.Thereby, it is possible to effectively reduce the several of public network packet loss delay Rate, improves data speed of download.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, can also be by other Mode realize.Apparatus and method embodiment described above is only schematical, for example, flow chart and frame in attached drawing Figure shows the system of multiple embodiments according to the present invention, the system frame in the cards of method and computer program product Structure, function and operation.At this point, each square frame in flow chart or block diagram can represent a module, program segment or code A part, the part of the module, program segment or code include one or more be used for realization as defined in logic function Executable instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be with not The order for being same as being marked in attached drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they have When can also perform in the opposite order, this is depending on involved function.It is also noted that in block diagram and/or flow chart Each square frame and block diagram and/or the square frame in flow chart combination, the special of function or action as defined in performing can be used Hardware based system realize, or can be realized with the combination of specialized hardware and computer instruction.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
It can replace, can be realized wholly or partly by software, hardware, firmware or its any combination.When When being realized using software, it can realize in the form of a computer program product whole or in part.The computer program product Including one or more computer instructions.It is all or part of when loading on computers and performing the computer program instructions Ground is produced according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special purpose computer, Computer network or other programmable devices.The computer instruction can store in a computer-readable storage medium, or Person is transmitted from a computer-readable recording medium to another computer-readable recording medium, for example, the computer instruction Wired (such as coaxial cable, optical fiber, digital subscriber can be passed through from a web-site, computer, server or data center Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or data Center is transmitted.The computer-readable recording medium can be any usable medium that computer can access or wrap The data storage devices such as the server that is integrated containing one or more usable mediums, data center.The usable medium can be magnetic Property medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disc Solid State Disk (SSD)) etc.
It should be noted that herein, term " including ", " including " or its any other variation are intended to non-row Its property includes, so that process, method, article or equipment including a series of elements not only include those key elements, and And the other key elements being not explicitly listed are further included, or further include as this process, method, article or equipment institute inherently Key element.In the absence of more restrictions, the key element limited by sentence " including one ... ", it is not excluded that including institute State in process, method, article or the equipment of key element that also there are other identical element.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference numeral in claim should not be considered as to the involved claim of limitation.

Claims (10)

1. a kind of data transmission method, it is characterised in that applied to the server being connected with user terminal communication, the method bag Include:
The network environment data of the user terminal is detected, the network environment data includes network delay data and/or network Packet loss;
Judge whether the network environment data is more than predetermined threshold value;
If so, the transmission number of data packet to be sent is then adjusted according to the network environment data, and based on the hair after adjustment Send number that the data packet to be sent is sent to the user terminal.
2. data transmission method according to claim 1, it is characterised in that the network rings of the detection user terminal Border data include:
The detection request for carrying network detection data packet is sent to the user terminal, is carried so that the user terminal returns There is the detection response message of network detection data packet to be responded to the detection request;
According to the network environment data of user terminal described in the detection request and the detection response information acquisition.
3. data transmission method according to claim 2, it is characterised in that described according to the detection request and the inspection The network environment data of user terminal described in response information acquisition is surveyed, including:
According to the network delay data of user terminal described in the detection request and the detection response information acquisition;And/or
According to the network packet loss rate of user terminal described in the detection request and the detection response information acquisition;
The network environment data of the user terminal is determined according to the network delay data and/or the network packet loss rate.
4. data transmission method according to claim 3, it is characterised in that when the network detection data packet includes first Between stab, first time stamp is used for the sending time for representing the detection request;
The network delay data of the user terminal according to the detection request and the detection response information acquisition, bag Include:
Acquisition receives second timestamp detected when request is corresponding to detect response message and the detection response disappears The first time stamp that the detection of network described in breath data packet includes, and according to first time stamp and second time Stamp calculates the transmitting-receiving time interval of the network detection data packet;
The network delay data of the user terminal are calculated according at least one transmitting-receiving time interval.
5. data transmission method according to claim 3, it is characterised in that described according to the detection request and the inspection The network packet loss rate of user terminal described in response information acquisition is surveyed, including:
Count the transmission number of the detection request and the reception number of the detection response message;
According to the transmission number and the network packet loss rate for receiving number and calculating the user terminal.
6. data transmission method according to claim 1, it is characterised in that the data packet to be sent is included based on pre- If multiple data packets of sequencing, the transmission number that data packet to be sent is adjusted according to the network environment data, And the data packet to be sent is sent to by the user terminal based on the transmission number after adjustment, including:
Same data packet is repeatedly sent to by the user in a prefixed time interval based on the default sequencing respectively Terminal;Or
The data packet and adjacent with the data packet suitable is sent when detecting data packet packet loss, while to the user terminal Next data packet of sequence, and so on, it is whole to the user when detecting the receive information of the user terminal feedback End sends last data packet sent before the receive information for detecting the user terminal feedback.
7. data transmission method according to claim 6, it is characterised in that the network is configured with the server and is lost The correspondence of bag rate and data packet transmission times, or network delay data pass corresponding with data packet transmission times System, or the weighted data of the network packet loss rate and the network delay data and the correspondence of data packet transmission times, It is described that same data packet is repeatedly sent to by the user in a prefixed time interval based on the default sequencing respectively Terminal, including:
Corresponding data packet transmission times is obtained according to current network packet loss rate, or is obtained according to current network delay data Corresponding data packet transmission times is taken, or is obtained according to the weighted data of the network packet loss rate and the network delay data Corresponding data packet transmission times;
Same data packet is sent in a prefixed time interval according to the data packet respectively based on the default sequencing Number is sent to the user terminal.
8. a kind of data transmission device, it is characterised in that applied to the server being connected with user terminal communication, described device bag Include:
Detection module, for detecting the network environment data of the user terminal, the network environment data includes network delay Data and/or network packet loss rate;
Judgment module, for judging whether the network environment data is more than predetermined threshold value;
Sending module is adjusted, for if so, then adjust the transmission number of data packet to be sent according to the network environment data, And the data packet to be sent is sent to by the user terminal based on the transmission number after adjustment.
9. a kind of server, it is characterised in that the server includes:
Storage medium;
Processor;And
Data transmission device, described device are stored in the storage medium and include the software work(performed by the processor Energy module, described device include:
Detection module, for detecting the network environment data of user terminal, the network environment data includes network delay data And/or network packet loss rate;
Judgment module, for judging whether the network environment data is more than predetermined threshold value;
Sending module is adjusted, for if so, then adjust the transmission number of data packet to be sent according to the network environment data, And the data packet to be sent is sent to by the user terminal based on the transmission number after adjustment.
10. a kind of readable storage medium storing program for executing, it is characterised in that computer program, the meter are stored with the readable storage medium storing program for executing Calculation machine program realizes the data transmission method in claim 1-7 described in any one when running.
CN201711244319.9A 2017-11-30 2017-11-30 Data transmission method, device, server and readable storage medium Active CN107995036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711244319.9A CN107995036B (en) 2017-11-30 2017-11-30 Data transmission method, device, server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711244319.9A CN107995036B (en) 2017-11-30 2017-11-30 Data transmission method, device, server and readable storage medium

Publications (2)

Publication Number Publication Date
CN107995036A true CN107995036A (en) 2018-05-04
CN107995036B CN107995036B (en) 2021-04-20

Family

ID=62034866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711244319.9A Active CN107995036B (en) 2017-11-30 2017-11-30 Data transmission method, device, server and readable storage medium

Country Status (1)

Country Link
CN (1) CN107995036B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924005A (en) * 2018-06-29 2018-11-30 优刻得科技股份有限公司 Network detecting method, network detection device, medium and equipment
CN109348513A (en) * 2018-11-15 2019-02-15 Oppo广东移动通信有限公司 A kind of data pack transmission method, terminal and computer storage medium
CN110138632A (en) * 2019-03-26 2019-08-16 视联动力信息技术股份有限公司 A kind of data transmission method and device
CN110166327A (en) * 2019-06-26 2019-08-23 恒宝股份有限公司 A kind of data transfer integrity control system and method
WO2020038256A1 (en) * 2018-08-23 2020-02-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method and apparatus
CN110955728A (en) * 2019-11-28 2020-04-03 深圳市恒泰能源科技有限公司 Power consumption data transmission method, server and storage medium
CN111526607A (en) * 2020-04-14 2020-08-11 北京小米移动软件有限公司 Communication data processing method and device, terminal equipment and storage medium
CN111698176A (en) * 2020-06-09 2020-09-22 北京大米科技有限公司 Data transmission method and device, electronic equipment and computer readable storage medium
CN111935441A (en) * 2020-07-30 2020-11-13 北京佳讯飞鸿电气股份有限公司 Network state detection method and device
CN112596985A (en) * 2020-12-30 2021-04-02 绿盟科技集团股份有限公司 IT asset detection method, device, equipment and medium
CN113115283A (en) * 2021-03-05 2021-07-13 深圳市南方硅谷半导体有限公司 Communication method, device, equipment and storage medium based on Bluetooth mesh network
CN113225231A (en) * 2021-05-12 2021-08-06 广州广日电梯工业有限公司 Network evaluation method for elevator and network evaluation device for elevator
CN113233269A (en) * 2021-05-12 2021-08-10 广州广日电梯工业有限公司 Method and device for diagnosing attack on elevator network
CN113301029A (en) * 2021-05-14 2021-08-24 北京汇钧科技有限公司 Data transmission method, device, equipment and storage medium
CN113422708A (en) * 2021-06-18 2021-09-21 中山大学 Data transfer method for remote heart color ultrasound examination
CN114337939A (en) * 2021-06-23 2022-04-12 中宇联云计算服务(上海)有限公司 Network system based on cloud network fusion technology and network optimization method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252425A (en) * 2008-04-09 2008-08-27 杭州华三通信技术有限公司 Loss package error correcting method and system of self-adapting network
CN101714908A (en) * 2008-10-07 2010-05-26 中兴通讯股份有限公司 System and method for strengthening multimedia terminal anti-packet loss ability by transmitting channel redundancy
US20160021223A1 (en) * 2014-07-21 2016-01-21 Samsung Electronics Co., Ltd. Server for performing low power communication and operation method thereof, and scheduling map generation method for performing low power communication
CN105897452A (en) * 2015-08-12 2016-08-24 乐视云计算有限公司 Data retransmission method and device
CN106533826A (en) * 2016-10-25 2017-03-22 乐视控股(北京)有限公司 Network state detection method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252425A (en) * 2008-04-09 2008-08-27 杭州华三通信技术有限公司 Loss package error correcting method and system of self-adapting network
CN101714908A (en) * 2008-10-07 2010-05-26 中兴通讯股份有限公司 System and method for strengthening multimedia terminal anti-packet loss ability by transmitting channel redundancy
US20160021223A1 (en) * 2014-07-21 2016-01-21 Samsung Electronics Co., Ltd. Server for performing low power communication and operation method thereof, and scheduling map generation method for performing low power communication
CN105897452A (en) * 2015-08-12 2016-08-24 乐视云计算有限公司 Data retransmission method and device
CN106533826A (en) * 2016-10-25 2017-03-22 乐视控股(北京)有限公司 Network state detection method and system

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924005A (en) * 2018-06-29 2018-11-30 优刻得科技股份有限公司 Network detecting method, network detection device, medium and equipment
CN108924005B (en) * 2018-06-29 2020-05-12 优刻得科技股份有限公司 Network detection method, network detection apparatus, medium, and device
US11696207B2 (en) 2018-08-23 2023-07-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method, electronic device, and computer readable storage medium
WO2020038256A1 (en) * 2018-08-23 2020-02-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method and apparatus
US10993166B2 (en) 2018-08-23 2021-04-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method, electronic device, and computer readable storage medium
CN109348513A (en) * 2018-11-15 2019-02-15 Oppo广东移动通信有限公司 A kind of data pack transmission method, terminal and computer storage medium
CN109348513B (en) * 2018-11-15 2023-08-11 Oppo广东移动通信有限公司 Data packet transmission method, terminal and computer storage medium
CN110138632A (en) * 2019-03-26 2019-08-16 视联动力信息技术股份有限公司 A kind of data transmission method and device
CN110166327A (en) * 2019-06-26 2019-08-23 恒宝股份有限公司 A kind of data transfer integrity control system and method
CN110955728A (en) * 2019-11-28 2020-04-03 深圳市恒泰能源科技有限公司 Power consumption data transmission method, server and storage medium
CN111526607A (en) * 2020-04-14 2020-08-11 北京小米移动软件有限公司 Communication data processing method and device, terminal equipment and storage medium
CN111698176A (en) * 2020-06-09 2020-09-22 北京大米科技有限公司 Data transmission method and device, electronic equipment and computer readable storage medium
CN111935441A (en) * 2020-07-30 2020-11-13 北京佳讯飞鸿电气股份有限公司 Network state detection method and device
CN112596985A (en) * 2020-12-30 2021-04-02 绿盟科技集团股份有限公司 IT asset detection method, device, equipment and medium
CN112596985B (en) * 2020-12-30 2023-11-10 绿盟科技集团股份有限公司 IT asset detection method, device, equipment and medium
CN113115283B (en) * 2021-03-05 2023-03-03 深圳市南方硅谷半导体股份有限公司 Communication method, device, equipment and storage medium based on Bluetooth mesh network
CN113115283A (en) * 2021-03-05 2021-07-13 深圳市南方硅谷半导体有限公司 Communication method, device, equipment and storage medium based on Bluetooth mesh network
CN113233269A (en) * 2021-05-12 2021-08-10 广州广日电梯工业有限公司 Method and device for diagnosing attack on elevator network
CN113225231B (en) * 2021-05-12 2022-09-09 广州广日电梯工业有限公司 Network evaluation method for elevator and network evaluation device for elevator
CN113225231A (en) * 2021-05-12 2021-08-06 广州广日电梯工业有限公司 Network evaluation method for elevator and network evaluation device for elevator
CN113301029A (en) * 2021-05-14 2021-08-24 北京汇钧科技有限公司 Data transmission method, device, equipment and storage medium
CN113422708A (en) * 2021-06-18 2021-09-21 中山大学 Data transfer method for remote heart color ultrasound examination
CN114337939A (en) * 2021-06-23 2022-04-12 中宇联云计算服务(上海)有限公司 Network system based on cloud network fusion technology and network optimization method

Also Published As

Publication number Publication date
CN107995036B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN107995036A (en) Data transmission method, device, server and readable storage medium storing program for executing
CN107920122A (en) Game player's matching process, device, match server and readable storage medium storing program for executing
CN108040108A (en) Communication handover method, device, coordination service device and readable storage medium storing program for executing
CN106105054B (en) Mthods, systems and devices for crosspoint Bluetooth communication
CN110417650A (en) Multilink data distribution method, device and electronic equipment
CN108200170A (en) Message treatment method, device and readable storage medium storing program for executing
CN104679627A (en) Testing method and device
CN108040355A (en) Method for network access and system
WO2020192514A1 (en) Method for selecting transmission path, information configuration method, terminal, and network apparatus
CN106123910A (en) Step-recording method based on mobile terminal and step count set
CN107707557A (en) Anonymous access method, apparatus, the network equipment and readable storage medium storing program for executing
CN110933706A (en) Network communication setting method, device, storage medium and terminal
CN106708240A (en) Power saving method, server and power saving system
CN113225818A (en) QCL (quaternary clock language) determining method, terminal and network side equipment
CN108363628A (en) Message treatment method, device, terminal and computer readable storage medium
WO2019019285A1 (en) Resource control method and apparatus
CN112839326A (en) Network switching method, device, storage medium and gateway equipment
CN112235082A (en) Communication information transmission method, device, equipment and storage medium
US20230032235A1 (en) Energy efficiency evaluation method and related device
KR20210139460A (en) Data transmission method, information configuration method, terminal and network device
US20220408340A1 (en) Wireless communication service responsive to an artificial intelligence (ai) network
CN114518718A (en) Device control method, device, storage medium and electronic device
CN112667868B (en) Data detection method and device
CN114417201A (en) Message processing method and device, computer equipment and storage medium
CN111132233B (en) Control method for separated load bearing and related equipment

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
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180504

Assignee: Hangzhou spoon Network Technology Co., Ltd

Assignor: Hangzhou dianhun Network Technology Co., Ltd

Contract record no.: X2021330000727

Denomination of invention: Data transmission method, device, server and readable storage medium

Granted publication date: 20210420

License type: Common License

Record date: 20211109