CN108650061A - VPN Proxy Methods, device, storage medium and system based on FEC - Google Patents

VPN Proxy Methods, device, storage medium and system based on FEC Download PDF

Info

Publication number
CN108650061A
CN108650061A CN201810375027.7A CN201810375027A CN108650061A CN 108650061 A CN108650061 A CN 108650061A CN 201810375027 A CN201810375027 A CN 201810375027A CN 108650061 A CN108650061 A CN 108650061A
Authority
CN
China
Prior art keywords
fec
message
agent
agent sides
sides
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810375027.7A
Other languages
Chinese (zh)
Inventor
李侠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
As Science And Technology (beijing) Co Ltd
Cloudminds Beijing Technologies Co Ltd
Original Assignee
As Science And Technology (beijing) 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 As Science And Technology (beijing) Co Ltd filed Critical As Science And Technology (beijing) Co Ltd
Priority to CN201810375027.7A priority Critical patent/CN108650061A/en
Publication of CN108650061A publication Critical patent/CN108650061A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control

Landscapes

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

Abstract

This disclosure relates to a kind of VPN Proxy Methods, device, storage medium and system based on FEC, the data transmission stability to solve the problems, such as VPN agencies in the prior art is poor.This method includes:After first FEC agent sides receive the message that the VPN device acted on behalf of by the first FEC agent sides is sent, the message is cached, and the message is sent to the 2nd FEC agent sides;FEC codings are carried out to the message of caching according to redundancy ratio, obtain redundant message, and the redundant message is sent to the 2nd FEC agent sides.

Description

VPN Proxy Methods, device, storage medium and system based on FEC
Technical field
This disclosure relates to the communications field, and in particular, to a kind of VPN Proxy Methods, device, storage medium based on FEC And system.
Background technology
Currently, building the special of safety using VPN (Virtual Private Network, Virtual Private Network) technology With in network development process, since mobile network or wifi network have certain packet loss and shake, terminal is caused to access safety net by VPN When network transmits, usually interim card, existing especially for the terminal with high speed data transfer demand, such as high in the clouds intelligent robot Some dedicated network experience effects are excessively poor.
FEC (Forward Error Correction, forward error correction) technology is to be transmitted redundancy using data Method recipient will be allowed to build data again, to increase the confidence level of data communication when occurring mistake in transmission.To understand Certainly influence of the packet loss to VPN upper-layer services, while ensureing the stability of delay using FEC is one good in VPN agencies Selection.
But the relevant technologies are very dumb to the use of FEC, can not extend, such as the FEC processing based on streaming media service It is simply possible to use in the client and server program of media, FEC technologies how to be enable to be common to VPN agencies, art technology Personnel are not considered.
Invention content
Purpose of this disclosure is to provide a kind of VPN Proxy Methods, device, storage medium and system based on FEC, to solve The poor problem of the data transmission stability of VPN agencies in the prior art.
To achieve the goals above, disclosure first aspect provides a kind of VPN Proxy Methods based on FEC, the method Including:
First forward error correction FEC agent sides are received to be set by the Virtual Private Network VPN that the first FEC agent sides are acted on behalf of After the message that preparation is sent, the message is cached, and the message is sent to the 2nd FEC agent sides;
FEC codings are carried out to the message of caching according to redundancy ratio, obtain redundant message, and the redundant message is sent out Give the 2nd FEC agent sides.
Optionally, described that FEC codings are carried out to the message of caching according to redundancy ratio, redundant message is obtained, including:
It is received in the first FEC agent sides and belongs to the data packet of same session and reach preset quantity threshold value and/or institute The duration of the first FEC agent sides caching message is stated when reaching preset duration threshold value, according to redundancy ratio to the message of caching into Row FEC codings, obtain the redundant message.
Optionally, the method includes:
Receive the packet loss that the 2nd FEC agent sides return;
The redundancy ratio of the first FEC agent sides is adjusted according to the packet loss.
Optionally, the redundancy ratio that the first FEC agent sides are adjusted according to the packet loss, including:
The redundancy ratio O1 of the first FEC agent sides is calculated based on following formula:
O1=M:N;Wherein, M is the same group of data message for belonging to same session that the first FEC agent sides receive Quantitative value, N be more thanSmallest positive integral value, LossRate is packet loss.
Optionally, the method is applied to the VPN agencies based on User Datagram Protocol udp protocol, then it is described will be described Message is sent to the 2nd FEC agent sides, including:It replicates the message parallel while caching the message and carries out FEC data The package of datagram protocol FDP formats, and the message after package is sent to the 2nd FEC agent sides;
It is described that the redundant message is sent to the 2nd FEC agent sides, including:Described in redundant message progress The package of FDP formats, and the redundant message after package is sent to the 2nd FEC agent sides;
Wherein, header size as defined in the FDP formats is 20 bytes, and the header includes following field: Sequence of message number, redundant message number, message identification, packet loss, session identification, data message length, is filled out at data message number Fill position.
Disclosure second aspect provides a kind of VPN Proxy Methods based on FEC, the method includes:
After 2nd FEC agent sides receive the message of the first FEC agent sides transmission, the message is cached;
The message is sent to the VPN device acted on behalf of by the 2nd FEC agent sides;And
Judge whether the message is lost, if the message is lost, the message based on caching passes through FEC restores the message of loss, and the message after recovery is sent to and is set by the VPN that the 2nd FEC agent sides are acted on behalf of It is standby.
Optionally, the method further includes:
The 2nd FEC agent sides calculate the packet loss of the message, and the packet loss is sent to the first FEC Agent side.
Optionally, the packet loss that the 2nd FEC agent sides calculate the message includes:
It is to calculate basis with same group of message of same session, the packet loss LossRate is calculated by following formula:
Wherein, DataNum represents the data volume of data message, and ReduNum represents the data volume of redundant message, RecvNum The sum of the data volume of the data message and redundant message that receive is represented, LossRate ' is upper one group of message of this group of message Packet loss, ratio are the occupation proportion coefficient of front and back packet loss twice.
The disclosure third aspect provides a kind of FEC agent sides, including:
Cache module, for receiving the Virtual Private Network acted on behalf of by the FEC agent sides in the FEC agent sides After the message that VPN device is sent, the message is cached;
Sending module, for the message to be sent to the 2nd FEC agent sides;
FEC coding modules obtain redundant message for carrying out FEC codings to the message of caching according to redundancy ratio;
The sending module is additionally operable to, and the redundant message is sent to the 2nd FEC agent sides.
Optionally, the FEC coding modules are used for:
It is received in the first FEC agent sides and belongs to the data packet of same session and reach preset quantity threshold value and/or institute The duration of the first FEC agent sides caching message is stated when reaching preset duration threshold value, according to redundancy ratio to the message of caching into Row FEC codings, obtain the redundant message.
Optionally, further include:
Receiving module, the packet loss returned for receiving the 2nd FEC agent sides;
Redundancy ratio adjusts module, the redundancy ratio for adjusting the first FEC agent sides according to the packet loss.
Optionally, the redundancy ratio adjustment module is used for:
The redundancy ratio O1 of the first FEC agent sides is calculated based on following formula:
O1=M:N;Wherein, M is the same group of data message for belonging to same session that the first FEC agent sides receive Quantitative value, N be more thanSmallest positive integral value, LossRate is packet loss.
Optionally, the FEC agent sides are applied to the VPN agencies based on User Datagram Protocol udp protocol, the transmission Module is used for:It replicates the message parallel while the cache module caches the message and carries out FEC datagram protocols FDP The package of format, and the message after package is sent to the 2nd FEC agent sides;The FDP is carried out to the redundant message The package of format, and the redundant message after package is sent to the 2nd FEC agent sides;
Wherein, header size as defined in the FDP formats is 20 bytes, and the header includes following field: Sequence of message number, redundant message number, message identification, packet loss, session identification, data message length, is filled out at data message number Fill position.
Disclosure fourth aspect provides a kind of FEC agent sides, including:
Cache module, for the FEC agent sides receive the first FEC agent sides transmission message after, described in caching Message;
First sending module, for the message to be sent to the VPN device acted on behalf of by the FEC agent sides;
Judgment module, for judging whether the message is lost;
Message recovery module, for when the message is lost, the message based on caching to be by FEC to losing Message restored;
First sending module is additionally operable to, and the message after recovery is sent to and is set by the VPN that the FEC agent sides are acted on behalf of It is standby.
Optionally, further include:
Packet loss computing module, the packet loss for calculating the message;
Second sending module, for the packet loss to be sent to the first FEC agent sides.
Optionally, the packet loss computing module is used for:
It is to calculate basis with same group of message of same session, the packet loss LossRate is calculated by following formula:
Wherein, DataNum represents the data volume of data message, and ReduNum represents the data volume of redundant message, RecvNum The sum of the data volume of the data message and redundant message that receive is represented, LossRate ' is upper one group of message of this group of message Packet loss, ratio are the occupation proportion coefficient of front and back packet loss twice.
The 5th aspect of the disclosure provides a kind of computer readable storage medium, is stored thereon with computer program, the program The step of the first FEC agent sides described in first aspect execute method is realized when being executed by processor, or realizes second aspect institute State the step of the 2nd FEC agent sides execute method.
The 6th aspect of the disclosure provides a kind of VPN agency plants based on FEC, including VPN client, with VPN visitors The connected FEC agent clients in family end, vpn server, and the FEC proxy servers that are connected with the vpn server;
The FEC agent clients are used for, after receiving the message that the VPN client is sent, as the first FEC generations The method described in end execution first aspect is managed, and the FEC proxy servers are used for, and are receiving the FEC agent clients After the message of transmission, the method described in second aspect is executed as the 2nd FEC agent sides;Alternatively,
The FEC proxy servers are used for, after receiving the message that the vpn server is sent, as the first FEC generations The method described in end execution first aspect is managed, and the FEC agent clients are used for, and are receiving the FEC proxy servers After the message of transmission, the method described in second aspect is executed as the 2nd FEC agent sides.
Through the above technical solutions, the first FEC agent sides receive the virtual private acted on behalf of by the first FEC agent sides After the message that network VPN device is sent, caches the message and the message is transmitted directly to the 2nd FEC agent sides, and FEC can also be carried out to the message of caching to encode to obtain redundant message, and the redundant message is sent according to redundancy ratio To the 2nd FEC agent sides, so that the message received and redundant message are sent to by institute by the 2nd FEC agent sides State the VPN device of the 2nd FEC agent sides agency.For example, the VPN device acted on behalf of by the first FEC agent sides can be VPN client End, the VPN device acted on behalf of by the 2nd FEC agent sides can be vpn server, in this way, by VPN client and VPN services Increasing FEC agencies between device so that forward error correction technique can be applied in VPN data transmission, reduce data packetloss, also, FEC acts on behalf of the real-time forwarding mechanism of end edge caching side forwarding, decreases time delay.
Other feature and advantage of the disclosure will be described in detail in subsequent specific embodiment part.
Description of the drawings
Attached drawing is for providing further understanding of the disclosure, and a part for constitution instruction, with following tool Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is a kind of structural schematic diagram for VPN agency plants based on FEC that the embodiment of the present disclosure provides;
Fig. 2 is a kind of flow diagram for VPN Proxy Methods based on FEC that the embodiment of the present disclosure provides;
Fig. 3 is a kind of schematic diagram for FDP protocol formats that the embodiment of the present disclosure provides;
Fig. 4 is the flow diagram for another VPN Proxy Methods based on FEC that the embodiment of the present disclosure provides;
Fig. 5 is a kind of structural schematic diagram for FEC agent sides that the embodiment of the present disclosure provides;
Fig. 6 is the structural schematic diagram for another FEC agent sides that the embodiment of the present disclosure provides;
Fig. 7 is the structural schematic diagram for another FEC agent side that the embodiment of the present disclosure provides.
Specific implementation mode
The specific implementation mode of the disclosure is described in detail below in conjunction with attached drawing.It should be understood that this place is retouched The specific implementation mode stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
It should be noted that the term " first " in the embodiment of the present disclosure and attached drawing, " second " are similar for distinguishing Object, and should not be construed as describing specific sequence or precedence.
The embodiment of the present disclosure provides a kind of VPN agency plants based on FEC, the VPN agencies based on FEC as shown in Figure 1 System 100, including VPN client 101, the FEC agent clients 102 being connected with the VPN client 101, vpn server 103, and the FEC proxy servers 104 that are connected with the vpn server 103.
Wherein, VPN client 101 and vpn server 103 can be based on UDP (User Datagram Protocol, User Datagram Protocol) client and service terminal software.In this way, between VPN client 101 and FEC agent clients 102, And UDP transmitting messages can be based between vpn server 103 and FEC proxy servers 104, and FEC agent clients 102 FEC mechanism transmitting messages are used between FEC proxy servers 104.
Specifically, agency of the FEC agent clients 102 as VPN client 101 is receiving VPN client 101 After the message of transmission, FEC proxy servers 104 need to be forwarded the packet to, so that FEC proxy servers 104 send out the message Vpn server 103 is given, realizes VPN client 101 to 103 transmitting message of vpn server.Meanwhile FEC proxy servers 104 As the agency of vpn server 103 FEC need to be forwarded the packet to after the message for receiving the transmission of vpn server 103 Agent client 102 realizes vpn server 103 so that the message is sent to VPN client 101 by FEC agent clients 102 To 101 transmitting message of VPN client.
Illustratively, as shown in Figure 1, in the case where the VPN based on udp protocol acts on behalf of scene, VPN client 101 and FEC agency visitors Udp protocol transmitting message can be based between family end 102 and between vpn server 103 and FEC proxy servers 104, and The customized FDP agreements of the embodiment of the present disclosure can be based between FEC agent clients 102 and FEC proxy servers 104 to carry out Message transmissions (the FDP agreements will be described in detail in embodiment of the method).In this way, using above system, by VPN client Increase FEC agencies between vpn server so that forward error correction technique can be applied in VPN data transmission, reduces data and loses Packet stablizes packet loss, and can be adapted for the client based on udp protocol and service terminal software, and autgmentability is strong.
The embodiment of the present disclosure provides a kind of VPN Proxy Methods based on FEC, such as applied to shown in FIG. 1 based on FEC's VPN agency plants 100, as shown in Fig. 2, this method includes:
After S201, the first FEC agent sides receive the message that the VPN device acted on behalf of by the first FEC agent sides is sent, The message is cached, and the message is sent to the 2nd FEC agent sides.
In the specific implementation, the first FEC agent sides can execute caching message and replicate the message and be sent parallel, It avoids message from sending to wait for, reduces time delay.In addition, the first FEC agent sides can reasonably encapsulate the message received After be sent to the 2nd FEC agent sides.
S202, the first FEC agent sides carry out FEC codings according to redundancy ratio to the message of caching, obtain redundant message, And the redundant message is sent to the 2nd FEC agent sides.
It is worth noting that the first FEC agent sides described in the embodiment of the present disclosure refer to receiving proxied VPN device The message of transmission, the FEC agent sides that need to be E-Packeted to opposite end (i.e. the 2nd FEC agent sides).With shown in FIG. 1 based on FEC's Illustrated for VPN agency plants 100, FEC agent clients 102 receive VPN client 101 transmission message when, FEC agent clients 102 are used as above-mentioned first FEC agent sides, and the VPN device by the first FEC agent sides agency refers to VPN Client 101, and the 2nd FEC agent sides are FEC proxy servers 104.Similarly, FEC proxy servers 104 are receiving When the message that vpn server 103 is sent, FEC proxy servers 104 are used as above-mentioned first FEC agent sides, by the first FEC generations The VPN device for managing end agency refers to vpn server 103, and the 2nd FEC agent sides are FEC agent clients 102.In order to Description is easy, is described below with the first FEC agent sides and the 2nd FEC agent sides.
By taking FEC agent clients are the first FEC agent sides as an example, in the application scenarios of the VPN agencies based on udp protocol Under, FEC agent clients specifically can be by monitoring a UDP socket a, to receive the message of proxied client, simultaneously The FEC agent clients create a UDP socket b and are used to communicate with FEC proxy servers.Also, FEC agent clients After socket a receives message, caching message is encoded for FEC, while FEC agency's clothes are sent to after copy packet progress package Business device.
Further, in above-mentioned steps S202, the first FEC agent sides can meet certain article in the determining message cached When part, triggering FEC codings, for example, in one possible implementation, the first FEC agent sides can be belonged to receiving When the data packet of same session (such as same UDP connections) reaches preset quantity threshold value, according to redundancy ratio to the message of caching into Row FEC codings are to obtain redundant message.In alternatively possible realization method, the first FEC agent sides can be in caching message Duration when reaching preset duration threshold value, FEC is carried out to the message of caching according to redundancy ratio and is encoded to obtain redundant message.
Wherein, the redundancy ratio of the first FEC agent sides can be preset, can also be according to the 2nd FEC agent sides What the packet loss of return was calculated.That is, the first FEC agent sides can also receive losing for the 2nd FEC agent sides return Packet rate, and adjust according to the packet loss redundancy ratio of the first FEC agent sides.Illustratively, the first FEC agent sides can be with base In following formula computing redundancy ratio O1:
O1=M:N;Wherein, M be the first FEC agent sides receive belong to same session (such as same UDP connect Connect) same group of data message quantitative value, N be more thanSmallest positive integral value, LossRate be the 2nd FEC Agent side is calculated based on the message received and returns to the packet loss of the first FEC agent sides.
The embodiment of the present disclosure uses the method for adjusting redundancy ratio according to packet loss dynamic, can reach stable packet loss, carry The effect of high bandwidth utilization improves the data transmission stability of VPN agencies.
Below by taking the VPN agencies based on udp protocol as an example, illustrate the first FEC agent sides and the 2nd FEC agent sides it Between message transmissions.It illustratively, can be according to FDP (FEC Datagram between the first FEC agent sides and the 2nd FEC agent sides Protocol) format transmission message, that is to say, that the first FEC agent sides arrived involved in above-mentioned steps are to the 2nd FEC agent sides The message and redundant message and the 2nd FEC agent sides of transmission are to the first FEC agent sides return packet loss will be with FDP lattice What formula was sent.Specifically, header size as defined in FDP formats is 20 bytes, and the header includes following field:Report Literary sequence number, data message number, redundant message number, message identification, packet loss, session identification, data message length, filling Position.Fig. 3 shows FDP message formats, as illustrated in the drawing header, 4 byte-sized of each behavior, and header includes five Row, i.e. 20 byte-sizeds.Specifically, header includes following field:Sequence of message Sequence Number, datagram Literary number DataNum, redundant message number ReduNum, message identification PacketID, packet loss LossRate, session identification SessionID, data message length DataLength, filler Padding.User Data after header are message User data behind head.
Using customized FDP formats so that the method that the embodiment of the present disclosure provides can be not only common to is assisted based on UDP The client and server software of view.
The embodiment of the present disclosure also provides another VPN Proxy Methods based on FEC, and this method is applied to described in Fig. 2 The corresponding 2nd FEC agent sides of first FEC agent sides, as shown in figure 4, the method includes:
After S401, the 2nd FEC agent sides receive the message of the first FEC agent sides transmission, the message is cached.
S402, the message is sent to the VPN device acted on behalf of by the 2nd FEC agent sides.
S403, judge whether the message is lost, if the message is lost, the message based on caching The message of loss is restored by FEC, and the message after recovery is sent to and is acted on behalf of by the 2nd FEC agent sides VPN device.
It is worth noting that the first FEC agent sides described in the embodiment of the present disclosure refer to receiving proxied VPN device The message of transmission, the FEC agent sides that need to be E-Packeted to opposite end (i.e. the 2nd FEC agent sides).Implement with reference to the corresponding methods of Fig. 2 To the explanation of the first FEC agent sides and the 2nd FEC agent sides by taking the VPN agency plants 100 based on FEC as an example in example, herein not It repeats again.
By taking FEC proxy servers are the 2nd FEC agent sides as an example, in the application scenarios of the VPN agencies based on udp protocol Under, the 2nd FEC agent sides monitor a UDP socket aa, for receiving FEC agent client messages, while can receive one When a new UDP connections, a UDP socket bb is created, is used for and proxied server (vpn server as shown in Figure 1 103) it communicates.Also, when FEC agency services end UDP socket aa receives the message of a FEC agent client, parsing is simultaneously The message is cached, and message is sent to proxied server.
At FEC agency services end, UDP socket aa receives M report of the same UDP connections for carrying out FEC agent clients Wen Shi loses if any data message and then restores to lose message by FEC and be forwarded to proxied server, ensure that data just Really transmission.Wherein, M values are variable, in the Message Protocol between the first FEC agent sides and the 2nd FEC agent sides Defined value, for example, the agreement can be FDP agreements as shown in Figure 3, referring in particular to the above-mentioned explanation for Fig. 3, herein not It repeats again.
Optionally, the 2nd FEC agent sides can also calculate the packet loss of message, and the packet loss is sent to institute The first FEC agent sides are stated, so that the first FEC agent sides are according to the redundancy ratio of packet loss dynamic adjustment FEC.
Illustratively, the 2nd FEC agent sides are to calculate basis with same group of message of same session (such as same UDP connections), The packet loss LossRate is calculated by following formula:
Wherein, DataNum represents the data volume of data message, and ReduNum represents the data volume of redundant message, RecvNum The sum of the data volume of the data message and redundant message that receive is represented, LossRate ' is upper one group of message of this group of message Packet loss, ratio are the occupation proportion coefficient of front and back packet loss twice.In the specific implementation, which can be with default setting 0.8, with smooth packet loss, reduce shake.
The embodiment of the present disclosure also provides a kind of FEC agent sides 500, shown in FIG. 1 for implementing as the first FEC agent sides Method and step, as shown in figure 5, including:
Cache module 501, for receiving the Virtual Private Network acted on behalf of by the FEC agent sides in the FEC agent sides After the message that network VPN device is sent, the message is cached;
Sending module 502, for the message to be sent to the 2nd FEC agent sides;
FEC coding modules 503 obtain redundancy report for carrying out FEC codings to the message of caching according to redundancy ratio Text;
The sending module 502 is additionally operable to, and the redundant message is sent to the 2nd FEC agent sides.
Optionally, the FEC coding modules 503 are used for:It is received in the first FEC agent sides and belongs to same session Data packet reaches the duration of preset quantity threshold value and/or the first FEC agent sides caching message when reaching preset duration threshold value, FEC codings are carried out to the message of caching according to redundancy ratio, obtain the redundant message.
Optionally, as illustrated in the drawing shown in dotted line frame, which further includes:
Receiving module 504, the packet loss returned for receiving the 2nd FEC agent sides;
Redundancy ratio adjusts module 505, the redundancy for adjusting the first FEC agent sides according to the packet loss Than.
Optionally, the redundancy ratio adjustment module 505 is used for:
The redundancy ratio O1 of the first FEC agent sides is calculated based on following formula:
O1=M:N;Wherein, M is the same group of data message for belonging to same session that the first FEC agent sides receive Quantitative value, N be more thanSmallest positive integral value, LossRate is packet loss.
Optionally, the FEC agent sides are applied to the VPN agencies based on User Datagram Protocol udp protocol, the transmission Module 502 is used for:The package of FEC datagram protocol FDP formats is carried out to the message, and the message after package is sent to institute State the 2nd FEC agent sides;The package of the FDP formats is carried out to the redundant message, and the redundant message after package is sent To the 2nd FEC agent sides;Wherein, header size as defined in the FDP formats is 20 bytes, the header packet Include following field:Sequence of message number, data message number, redundant message number, message identification, packet loss, session identification, data Message length, filler.
About the device in above-described embodiment, it is shown in Fig. 2 to execute the concrete mode operated for wherein modules It is described in detail in the embodiment of method, explanation will be not set forth in detail herein.
The embodiment of the present disclosure also provides another kind FEC agent sides 600, for being used as the 2nd FEC agent sides to implement shown in Fig. 4 Method the step of, as shown in fig. 6, including:
Cache module 601, for after the message that the FEC agent sides receive the transmission of the first FEC agent sides, caching institute State message;
First sending module 602, for the message to be sent to the VPN device acted on behalf of by the FEC agent sides;
Judgment module 603, for judging whether the message is lost;
Message recovery module 604, for when the message is lost, the message based on caching to pass through FEC pairs The message of loss is restored;
First sending module 602 is additionally operable to, and the message after recovery is sent to and is acted on behalf of by the FEC agent sides VPN device.
Optionally, shown in dotted line frame as shown in FIG. 6, FEC agent sides 600 further include:
Packet loss computing module 605, the packet loss for calculating the message;
Second sending module 606, for the packet loss to be sent to the first FEC agent sides.
Optionally, the packet loss computing module 605 is used for:
It is to calculate basis with same group of message of same session, the packet loss LossRate is calculated by following formula:
Wherein, DataNum represents the data volume of data message, and ReduNum represents the data volume of redundant message, RecvNum The sum of the data volume of the data message and redundant message that receive is represented, LossRate ' is upper one group of message of this group of message Packet loss, ratio are the occupation proportion coefficient of front and back packet loss twice.
About the device in above-described embodiment, it is shown in Fig. 4 to execute the concrete mode operated for wherein modules It is described in detail in the embodiment of method, explanation will be not set forth in detail herein.
It is worth noting that in system 100 shown in FIG. 1, it is two-way between VPN client 101 and vpn server 103 In the case of communication, due to FEC agent clients 102 and FEC proxy servers 104 may be used as the first FEC agent sides with And the 2nd FEC agent side, therefore, FEC agent clients 102 include FEC agent sides 500 simultaneously with FEC proxy servers 104 With FEC agent sides 600.
The embodiment of the present disclosure also provides a kind of computer readable storage medium, is stored thereon with computer program, the program The step of the first FEC agent sides described in Fig. 1 execute method is realized when being executed by processor, or realizes the 2nd FEC generations described in Fig. 3 Manage the step of end executes method.
Fig. 7 is a kind of block diagram for FEC agent sides 700 that the embodiment of the present disclosure provides, for example, the FEC agent sides 700 can be with It is provided as a proxy server or an agent client.As shown in fig. 7, the FEC agent sides 700 may include processor 701, quantity can be one or more and memory 702, for storing the computer journey that can be executed by processor 701 Sequence.The computer program stored in memory 702 may include it is one or more each correspond to one group of instruction Module.In addition, processor 701, which can be configured as, executes the computer program, acted on behalf of with executing the above-mentioned VPN based on FEC Method.
In addition, FEC agent sides 700 can also include power supply module 703 and communication component 704, which can be with It is configured as executing the power management of FEC agent sides 700, which, which can be configured as, realizes FEC agent sides 700 Communication, for example, wired or wireless communication.In addition, the FEC agent sides 700 can also include input/output (I/O) interface 705.FEC agent sides 700 can be operated based on the operating system for being stored in memory 705, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM etc..
The computer readable storage medium of the above-mentioned offer of the embodiment of the present disclosure can be with for above-mentioned depositing including program instruction Reservoir 705, above procedure instruction can be executed by the processor 701 of FEC agent sides 700 to complete the above-mentioned VPN generations based on FEC Reason method.
The preferred embodiment of the disclosure is described in detail above in association with attached drawing, still, the disclosure is not limited to above-mentioned reality The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure Monotropic type, these simple variants belong to the protection domain of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case of shield, can be combined by any suitable means, in order to avoid unnecessary repetition, the disclosure to it is various can The combination of energy no longer separately illustrates.
In addition, arbitrary combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally Disclosed thought equally should be considered as disclosure disclosure of that.

Claims (18)

1. a kind of VPN Proxy Methods based on FEC, which is characterized in that the method includes:
First forward error correction FEC agent sides receive the Virtual Private Network VPN device hair acted on behalf of by the first FEC agent sides After the message sent, the message is cached, and the message is sent to the 2nd FEC agent sides;
FEC codings are carried out to the message of caching according to redundancy ratio, obtain redundant message, and the redundant message is sent to The 2nd FEC agent sides.
2. according to the method described in claim 1, it is characterized in that, described carry out the message of caching according to redundancy ratio FEC is encoded, and obtains redundant message, including:
It is received in the first FEC agent sides and belongs to the data packet of same session and reach preset quantity threshold value and/or described When the duration of one FEC agent sides caching message reaches preset duration threshold value, FEC is carried out to the message of caching according to redundancy ratio Coding, obtains the redundant message.
3. according to the method described in claim 1, it is characterized in that, the method includes:
Receive the packet loss that the 2nd FEC agent sides return;
The redundancy ratio of the first FEC agent sides is adjusted according to the packet loss.
4. according to the method described in claim 3, it is characterized in that, described adjust the first FEC generations according to the packet loss The redundancy ratio at end is managed, including:
The redundancy ratio O1 of the first FEC agent sides is calculated based on following formula:
O1=M:N;Wherein, M is the number for the same group of data message for belonging to same session that the first FEC agent sides receive Magnitude, N be more thanSmallest positive integral value, LossRate is packet loss.
5. method according to claim 1 to 4, which is characterized in that the method is applied to be based on number of users It is acted on behalf of according to the VPN of datagram protocol udp protocol, then it is described that the message is sent to the 2nd FEC agent sides, including:Described in caching The package that the message carries out FEC datagram protocol FDP formats is replicated while message parallel, and the message after package is sent To the 2nd FEC agent sides;
It is described that the redundant message is sent to the 2nd FEC agent sides, including:The FDP is carried out to the redundant message The package of format, and the redundant message after package is sent to the 2nd FEC agent sides;
Wherein, header size as defined in the FDP formats is 20 bytes, and the header includes following field:Message Sequence number, data message number, redundant message number, message identification, packet loss, session identification, data message length, filling Position.
6. a kind of VPN Proxy Methods based on FEC, which is characterized in that the method includes:
After 2nd FEC agent sides receive the message of the first FEC agent sides transmission, the message is cached;
The message is sent to the VPN device acted on behalf of by the 2nd FEC agent sides;And
Judge whether the message is lost, if the message is lost, the message based on caching passes through FEC pairs The message of loss is restored, and the message after recovery is sent to the VPN device acted on behalf of by the 2nd FEC agent sides.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
The 2nd FEC agent sides calculate the packet loss of the message, and the packet loss is sent to the first FEC and is acted on behalf of End.
8. the method according to the description of claim 7 is characterized in that the 2nd FEC agent sides calculate the packet loss of the message Rate includes:
It is to calculate basis with same group of message of same session, the packet loss LossRate is calculated by following formula:
Wherein, DataNum represents the data volume of data message, and ReduNum represents the data volume of redundant message, and RecvNum is represented The sum of the data volume of the data message and redundant message that receive, LossRate ' are the packet loss of upper one group of message of this group of message Rate, ratio are the occupation proportion coefficient of front and back packet loss twice.
9. a kind of FEC agent sides, which is characterized in that including:
Cache module is set for being received in the FEC agent sides by the Virtual Private Network VPN that the FEC agent sides are acted on behalf of After the message that preparation is sent, the message is cached;
Sending module, for the message to be sent to the 2nd FEC agent sides;
FEC coding modules obtain redundant message for carrying out FEC codings to the message of caching according to redundancy ratio;
The sending module is additionally operable to, and the redundant message is sent to the 2nd FEC agent sides.
10. FEC agent sides according to claim 9, which is characterized in that the FEC coding modules are used for:
It is received in the first FEC agent sides and belongs to the data packet of same session and reach preset quantity threshold value and/or described When the duration of one FEC agent sides caching message reaches preset duration threshold value, FEC is carried out to the message of caching according to redundancy ratio Coding, obtains the redundant message.
11. FEC agent sides according to claim 9, which is characterized in that further include:
Receiving module, the packet loss returned for receiving the 2nd FEC agent sides;
Redundancy ratio adjusts module, the redundancy ratio for adjusting the first FEC agent sides according to the packet loss.
12. FEC agent sides according to claim 11, which is characterized in that the redundancy ratio adjustment module is used for:
The redundancy ratio O1 of the first FEC agent sides is calculated based on following formula:
O1=M:N;Wherein, M is the number for the same group of data message for belonging to same session that the first FEC agent sides receive Magnitude, N be more thanSmallest positive integral value, LossRate is packet loss.
13. the FEC agent sides according to any one of claim 9 to 12, which is characterized in that the FEC agent sides application In the VPN agencies based on User Datagram Protocol udp protocol, the sending module is used for:Described in cache module caching The package that the message carries out FEC datagram protocol FDP formats is replicated while message parallel, and the message after package is sent To the 2nd FEC agent sides;Carry out the package of the FDP formats to the redundant message, and by the redundant message after package It is sent to the 2nd FEC agent sides;
Wherein, header size as defined in the FDP formats is 20 bytes, and the header includes following field:Message Sequence number, data message number, redundant message number, message identification, packet loss, session identification, data message length, filling Position.
14. a kind of FEC agent sides, which is characterized in that including:
Cache module, for after the message that the FEC agent sides receive the transmission of the first FEC agent sides, caching the message;
First sending module, for the message to be sent to the VPN device acted on behalf of by the FEC agent sides;
Judgment module, for judging whether the message is lost;
Message recovery module, for when the message is lost, the message based on caching to be by FEC to the report of loss Text is restored;
First sending module is additionally operable to, and the message after recovery is sent to the VPN device acted on behalf of by the FEC agent sides.
15. FEC agent sides according to claim 14, which is characterized in that further include:
Packet loss computing module, the packet loss for calculating the message;
Second sending module, for the packet loss to be sent to the first FEC agent sides.
16. FEC agent sides according to claim 15, which is characterized in that the packet loss computing module is used for:
It is to calculate basis with same group of message of same session, the packet loss LossRate is calculated by following formula:
Wherein, DataNum represents the data volume of data message, and ReduNum represents the data volume of redundant message, and RecvNum is represented The sum of the data volume of the data message and redundant message that receive, LossRate ' are the packet loss of upper one group of message of this group of message Rate, ratio are the occupation proportion coefficient of front and back packet loss twice.
17. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step of any one of claim 1 to 5 the first FEC agent sides execute method is realized when execution, or realizes that right is wanted The step of asking any one of 6 to 8 the 2nd FEC agent sides to execute method.
18. a kind of VPN agency plants based on FEC, which is characterized in that including VPN client, be connected with the VPN client FEC agent clients, vpn server, and the FEC proxy servers that are connected with the vpn server;
The FEC agent clients are used for, after receiving the message that the VPN client is sent, as the first FEC agent sides Perform claim requires the method described in any one of 1 to 5, and the FEC proxy servers are used for, and are receiving the FEC generations After managing the message that client is sent, the method described in any one of 6 to 8 is required as the 2nd FEC agent side perform claims;Or Person,
The FEC proxy servers are used for, after receiving the message that the vpn server is sent, as the first FEC agent sides Perform claim requires the method described in any one of 1 to 5, and the FEC agent clients are used for, and are receiving the FEC generations After managing the message that server is sent, the method described in any one of 6 to 8 is required as the 2nd FEC agent side perform claims.
CN201810375027.7A 2018-04-24 2018-04-24 VPN Proxy Methods, device, storage medium and system based on FEC Pending CN108650061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810375027.7A CN108650061A (en) 2018-04-24 2018-04-24 VPN Proxy Methods, device, storage medium and system based on FEC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810375027.7A CN108650061A (en) 2018-04-24 2018-04-24 VPN Proxy Methods, device, storage medium and system based on FEC

Publications (1)

Publication Number Publication Date
CN108650061A true CN108650061A (en) 2018-10-12

Family

ID=63747312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810375027.7A Pending CN108650061A (en) 2018-04-24 2018-04-24 VPN Proxy Methods, device, storage medium and system based on FEC

Country Status (1)

Country Link
CN (1) CN108650061A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660319A (en) * 2018-12-29 2019-04-19 北京金山安全软件有限公司 Network data transmission method and device and electronic equipment
CN110177128A (en) * 2019-04-15 2019-08-27 深圳前海达闼云端智能科技有限公司 Data transmission system and method for establishing VPN connection, terminal and VPN proxy thereof
CN110505123A (en) * 2019-09-04 2019-11-26 深圳前海达闼云端智能科技有限公司 Packet loss rate calculation method, server and computer-readable storage medium
WO2021047612A1 (en) * 2019-09-10 2021-03-18 华为技术有限公司 Packet processing method, device, and computer storage medium
CN112564856A (en) * 2019-09-10 2021-03-26 华为技术有限公司 Message processing method and device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070233891A1 (en) * 2001-03-09 2007-10-04 Digital Fountain, Inc. Multi-output packet server with independent streams
CN101834700A (en) * 2010-05-12 2010-09-15 北京邮电大学 Unidirectional reliable transmission method and transceiving device based on data packets
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation
CN106656422A (en) * 2017-01-03 2017-05-10 珠海全志科技股份有限公司 Streaming media transmission method capable of dynamically regulating redundancy of FEC (Forward Error Correction)
CN107483144A (en) * 2016-06-07 2017-12-15 中兴通讯股份有限公司 Forward error correction feedback information transmission method, device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070233891A1 (en) * 2001-03-09 2007-10-04 Digital Fountain, Inc. Multi-output packet server with independent streams
CN101834700A (en) * 2010-05-12 2010-09-15 北京邮电大学 Unidirectional reliable transmission method and transceiving device based on data packets
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation
CN107483144A (en) * 2016-06-07 2017-12-15 中兴通讯股份有限公司 Forward error correction feedback information transmission method, device
CN106656422A (en) * 2017-01-03 2017-05-10 珠海全志科技股份有限公司 Streaming media transmission method capable of dynamically regulating redundancy of FEC (Forward Error Correction)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660319A (en) * 2018-12-29 2019-04-19 北京金山安全软件有限公司 Network data transmission method and device and electronic equipment
CN109660319B (en) * 2018-12-29 2021-07-23 北京金山安全软件有限公司 Network data transmission method and device and electronic equipment
CN110177128A (en) * 2019-04-15 2019-08-27 深圳前海达闼云端智能科技有限公司 Data transmission system and method for establishing VPN connection, terminal and VPN proxy thereof
CN110177128B (en) * 2019-04-15 2022-02-01 达闼机器人有限公司 Data transmission system and method for establishing VPN connection, terminal and VPN proxy thereof
CN110505123A (en) * 2019-09-04 2019-11-26 深圳前海达闼云端智能科技有限公司 Packet loss rate calculation method, server and computer-readable storage medium
CN110505123B (en) * 2019-09-04 2021-07-30 达闼机器人有限公司 Packet loss rate calculation method, server and computer-readable storage medium
WO2021047612A1 (en) * 2019-09-10 2021-03-18 华为技术有限公司 Packet processing method, device, and computer storage medium
CN112564856A (en) * 2019-09-10 2021-03-26 华为技术有限公司 Message processing method and device and computer readable storage medium
US11683123B2 (en) 2019-09-10 2023-06-20 Huawei Technologies Co., Ltd. Packet processing method and apparatus, and computer storage medium

Similar Documents

Publication Publication Date Title
CN108650061A (en) VPN Proxy Methods, device, storage medium and system based on FEC
Mijovic et al. Comparing application layer protocols for the Internet of Things via experimentation
US20200358886A1 (en) Data Transmission Method, Apparatus, And System
CN105991462B (en) Sending method, sending device and the system of transmission control protocol TCP data packet
CN104836748B (en) congestion control bit rate algorithm
Xu et al. CMT-NC: improving the concurrent multipath transfer performance using network coding in wireless networks
TWI531275B (en) Method of data transmission between a user equipment and a base station in a wireless network system
WO2016100631A1 (en) Methods for enabling delay-awareness in the constrained application protocol (coap)
US8984158B2 (en) Data communication system and method
CN109906631B (en) Adaptive transmission method and device
WO2012129922A1 (en) Packet handling method, forwarding device and system
WO2014205377A1 (en) Cross-layer and cross-application acknowledgment for data transmission
CN108965775A (en) Method of adjustment, device and the storage medium of data packetloss processing strategie
CN108809859A (en) A kind of transmission coating control method of packet-oriented deadline
CN107027151B (en) Method and device for ensuring service quality
WO2019144802A1 (en) Data transmission method and related device
Herrero Analysis of the constrained application protocol over quick UDP internet connection transport
Wang et al. Aggressive congestion control mechanism for space systems
CN106936730A (en) A kind of file transmitting method, TCP agent and TCP Client
CN103379182A (en) Data transmission method and client sides
CN107634817B (en) Method and device for data transmission
WO2013152614A1 (en) System and method for network access based on application layer data
EP3297210A1 (en) Method for setting packet transmission mode and device
CN113424578B (en) Acceleration method and device for transmission control protocol
Zong et al. On Enhancing TCP to Deal with High Latency and Transmission Errors in Geostationary Satellite Network for 5G‐IoT

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181012

RJ01 Rejection of invention patent application after publication