CN105656812A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN105656812A
CN105656812A CN201410674847.8A CN201410674847A CN105656812A CN 105656812 A CN105656812 A CN 105656812A CN 201410674847 A CN201410674847 A CN 201410674847A CN 105656812 A CN105656812 A CN 105656812A
Authority
CN
China
Prior art keywords
data packet
electronics
information
private network
virtual private
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
CN201410674847.8A
Other languages
Chinese (zh)
Other versions
CN105656812B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410674847.8A priority Critical patent/CN105656812B/en
Publication of CN105656812A publication Critical patent/CN105656812A/en
Application granted granted Critical
Publication of CN105656812B publication Critical patent/CN105656812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an information processing method and an electronic device. The method comprises the steps of: receiving a data packet; judging whether the data packet accords with a first preset condition, wherein the first preset condition represents that the data packet is failed in sending or is sent overtime; and when the data packet accords with the first preset condition, sending the data packet by a first bandwidth of a special virtual network unit, wherein the first bandwidth is a bandwidth reserved by a first electronic device for the special virtual network unit.

Description

A kind of information processing method and electronics
Technical field
The present invention relates to the control techniques in intelligent terminal field, particularly relate to a kind of information processing method and electronics.
Background technology
At present, when access has number of site, it is possible to there will be access unsuccessful, or access speed situation slowly. Therefore, proxy server of bringing into use slowly conducts interviews. But, even if by proxy server access websites, the isoparametric restriction of service bandwidth of proxy server also can be subject to. Thus, result in user and cannot obtain stable access bandwidth, thus have influence on access speed.
Summary of the invention
In view of this, the object of the embodiment of the present invention is to provide a kind of information processing method and electronics.
For achieving the above object, the technical scheme of the present invention is achieved in that
The present invention provides a kind of information processing method, is applied to the first electronics, and described first electronics possesses virtual private network unit, and described method comprises:
Receive data packet;
Judge whether described data packet meets first pre-conditioned, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out;
When described data packet meet first pre-conditioned time,
Described data packet is sent by the first bandwidth of described virtual private network unit;
Wherein, described first bandwidth is described first electronics is the bandwidth that described virtual private network unit is reserved.
In such scheme, described method also comprises:
Getting first information list, described first information list comprises address information and the status information of one or more electronics possessing virtual private network unit.
In such scheme, described the first bandwidth by described virtual private network unit sends described data packet, comprising:
Get the object address information of described data packet;
The 2nd corresponding electronics is determined according to described object address information;
Choose according to described first information list and meet the 2nd the 3rd pre-conditioned electronics;
Described virtual private network unit is set up and is set up the path between described 2nd electronics by described 3rd electronics, controls described virtual private network unit and utilizes the first bandwidth by described path by described Packet Generation extremely described 2nd electronics.
In such scheme, described to judge whether described data packet meets first pre-conditioned, comprising:
From described data packet, extract object address information, determine the 2nd electronics according to described object address information;
Send described data packet to described 2nd electronics;
Judge whether to receive the response information for described data packet that described 2nd electronics returns,
When not receiving the response information for described data packet, it is determined that it is pre-conditioned that described data packet meets first;
Or,
From described data packet, extract object address information, determine the 2nd electronics according to described object address information;
Send described data packet to described 2nd electronics;
Judge whether to receive the response information for described data packet that described 2nd electronics returns;
When receiving the response information for described data packet, obtain send described data packet and receive between for the response information of described data packet time long;
When described, length exceedes preset duration threshold value, it is determined that it is pre-conditioned that described data packet meets first.
In such scheme, described method also comprises:
Obtaining the parameter of described virtual private network unit, described parameter comprises the first bandwidth of described virtual private network unit;
The parameter of described virtual private network unit is utilized described first information list to be upgraded;
Described first information list after Share update.
In such scheme, described method also comprises:
It is set to the first bandwidth of described virtual private network unit distribution;
Send the first notice to virtual special network server so that described virtual special network server upgrades described first information list according to described first notice; Wherein, described first notice comprises: the notice possessing virtual special network function, and the first bandwidth for described virtual special network function.
Present invention also offers a kind of electronics, described electronics comprises:
Receive unit, for receiving data packet;
Information process unit, pre-conditioned for judging whether described data packet meets first, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out; When described data packet meet first pre-conditioned time, control virtual private network unit send described data packet;
Virtual private network unit, sends described data packet for the control according to information process unit by the first bandwidth; Wherein, described first bandwidth is reserved bandwidth.
In such scheme, described electronics also comprises:
Storage unit, for storing first information list;
Accordingly, described reception unit, also for getting first information list, described first information list comprises address information and the status information of one or more electronics possessing virtual private network unit.
In such scheme, described information process unit, specifically for getting the object address information of described data packet; The 2nd corresponding electronics is determined according to described object address information; Choose according to the described first information list in described storage unit and meet the 2nd the 3rd pre-conditioned electronics; Control described virtual private network unit to set up by the path between described 3rd electronics foundation and described 2nd electronics, control described virtual private network unit and utilize the first bandwidth by described path by described Packet Generation extremely described 2nd electronics.
In such scheme, described information process unit, specifically for extracting object address information from described data packet, determines the 2nd electronics according to described object address information; Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns, when not receiving the response information for described data packet, it is determined that it is pre-conditioned that described data packet meets first;
Or,
Described information process unit, specifically for extracting object address information from described data packet, determines the 2nd electronics according to described object address information;Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns; When receiving the response information for described data packet, obtain send described data packet and receive between for the response information of described data packet time long; When described, length exceedes preset duration threshold value, it is determined that it is pre-conditioned that described data packet meets first.
In such scheme, described electronics also comprises:
Send unit, for the first information list after Share update;
Accordingly, described information process unit, specifically for obtaining the parameter of described virtual private network unit, described parameter comprises the first bandwidth of described virtual private network unit; The parameter of described virtual private network unit is utilized described first information list to be upgraded.
In such scheme, described electronics also comprises:
Send unit, for sending the first notice to virtual special network server;
Accordingly, described information process unit, also for setting the first bandwidth distributed for described virtual private network unit; Described virtual special network server is made to upgrade described first information list according to described first notice; Wherein, described first notice comprises: the notice possessing virtual special network function, and the first bandwidth for described virtual special network function.
The information processing method that the embodiment of the present invention provides and electronics, it is possible to after reception of the data packet, send unsuccessfully or send time-out, and the first bandwidth of virtual private network unit will be used to send described data packet. So, ensure that the access bandwidth of virtual private network, thus ensure access speed, promote the experience of user.
Accompanying drawing explanation
Fig. 1 is embodiment of the present invention information processing method schematic flow sheet one;
Fig. 2 is embodiment of the present invention scene schematic diagram one;
Fig. 3 is embodiment of the present invention information processing method schematic flow sheet two;
Fig. 4 is embodiment of the present invention scene schematic diagram two;
Fig. 5 is embodiment of the present invention determination methods schematic flow sheet one;
Fig. 6 is embodiment of the present invention determination methods schematic flow sheet two;
Fig. 7 is embodiment of the present invention scene schematic diagram three;
Fig. 8 is the schematic flow sheet one of embodiment of the present invention declaration virtual special network function;
Fig. 9 is the schematic flow sheet two of embodiment of the present invention declaration virtual special network function;
Figure 10 is embodiment of the present invention electronics composition structural representation one;
Figure 11 is embodiment of the present invention electronics composition structural representation two;
Figure 12 is embodiment of the present invention electronics composition structural representation three.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Embodiment one,
Embodiments providing a kind of information processing method, be applied to the first electronics, described first electronics possesses virtual private network unit, and as shown in Figure 1, described method comprises:
Step 101: receive data packet;
Step 102: judge whether described data packet meets first pre-conditioned, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out;
Step 103: when described data packet meet first pre-conditioned time, send described data packet by the first bandwidth of described virtual private network unit; Wherein, described first bandwidth is described first electronics is the bandwidth that described virtual private network unit is reserved.
Here, described first electronics can be router.
Described data packet can for being needed the data of the 2nd electronics being sent in outer net by Intranet by described first electronics; Its content can comprise: source internet protocol (IP) address, object IP address, protocol version, life cycle etc.
Described the first bandwidth by virtual private network unit sends described data packet: by means of only, in the first electronics, the virtual private network unit that total transmission bandwidth is the first bandwidth sends data packet.
A kind of enforcement scene of the present embodiment can be as shown in Figure 2, when user is by notebook computer browse network, a request information is sent by the first electronics 21, i.e. data packet, described first electronics determine described data packet meet first pre-conditioned time, sending described data packet to the 2nd electronics in network by the first bandwidth of the first electronics 21 self, described 2nd electronics can be a server.
Visible, by such scheme, just after reception of the data packet, can send unsuccessfully or send time-out, the first bandwidth of virtual private network unit will be used to send described data packet. So, ensure that the access bandwidth of virtual private network, thus ensure access speed, promote the experience of user.
Embodiment two,
Embodiments providing a kind of information processing method, be applied to the first electronics, described first electronics possesses virtual private network unit, and as shown in Figure 3, described method comprises:
Step 301: get first information list, described first information list comprises address information and the status information of one or more electronics possessing virtual private network unit;
Step 302: receive data packet;
Step 303: judge whether described data packet meets first pre-conditioned, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out;
Step 304: when described data packet meet first pre-conditioned time, get the object address information of described data packet;
Step 305: determine the 2nd corresponding electronics according to described object address information;
Step 306: choose according to described first information list and meet the 2nd the 3rd pre-conditioned electronics;
Step 307: described virtual private network unit is set up and set up the path between described 2nd electronics by described 3rd electronics, controls described virtual private network unit and utilizes the first bandwidth by described path by described Packet Generation extremely described 2nd electronics.
Here, described first electronics can be router.
Described data packet can for being needed the data of the 2nd electronics being sent in outer net by Intranet by described first electronics; Its content can comprise: source internet protocol (IP) address, object IP address, protocol version, life cycle etc.
Described the first bandwidth by virtual private network unit sends described data packet: by means of only, in the first electronics, the virtual private network unit that total transmission bandwidth is the first bandwidth sends data packet.
Preferably, the address information comprised in above-mentioned first information list can be the IP address information of described electronics; Described status information can comprise: whether virtual special network function is in identification information, the residue bandwidth of using state.
Further, the method for described acquisition first information list can be: obtains in the virtual special network server preset from network. Such as, shown in Fig. 4, the first electronics 41 gets first information list from the virtual special network server 42 network.
Preferably, described determine that the 2nd corresponding electronics can comprise according to described object address information: the object address information in data packet is the IP address, inside of the object terminal being finally connected to; After described first electronics receives described data packet, check the object address information in data packet, determine to connect the 2nd electronics of described object terminal according to described object address information, and utilize the address information of described 2nd electronics to be undertaken described data packet encapsulating obtaining new VPN data bag.
Described choosing according to described first information list meets the 2nd the 3rd pre-conditioned electronics, it is possible to comprising: choose, according to the status information of the electronics of described first information list, the 3rd electronics that tape remaining is wider than predetermined threshold value; Wherein, described predetermined threshold value can be the numerical value arranged according to practical situation.
Described virtual private network unit is set up and can be comprised by the path between described 3rd electronics foundation and described 2nd electronics: first set up the first sub-path between described virtual private network unit and described 3rd electronics; Then the 2nd sub-path between described 3rd electronics and described 2nd electronics is set up; Using described first sub-path and the 2nd sub-path jointly as path.
Controlling described virtual private network unit utilizes the first bandwidth by described path by described Packet Generation to described 2nd electronics to be: controls described virtual private network unit and utilizes described first bandwidth to send the VPN data bag after described encapsulation to described 2nd electronics;
It should be appreciated that after described 2nd electronics receives described VPN data bag, resolved by this VPN data bag, obtain data packet, send described data packet to object terminal according to the object address information in described data packet. Wherein, the packet header of VPN data bag is mainly first peeled off by the process of Xie Bao, then VPN data bag is reduced into original data packet; Process for described 2nd electronics no longer repeats here. Further, treating processes and the said process of the data packet that object terminal returns are the same, and so, the terminal being in heterogeneous networks just can communication mutually.
Described judge whether described data packet meets the first pre-conditioned method and can comprise following two kinds of scenes:
Scene one, as shown in Figure 5, comprising:
Step 501: extract object address information from described data packet, determines the 2nd electronics according to described object address information;
Step 502: send described data packet to described 2nd electronics;
Step 503: judge whether to receive the response information for described data packet that described 2nd electronics returns, when not receiving the response information for described data packet, it is determined that it is pre-conditioned that described data packet meets first; Otherwise, it is pre-conditioned that described data packet does not meet first, carries out subsequent disposal according to the mode of normal forwarding data bag.
Scene two, as shown in Figure 6, comprising:
Step 601: extract object address information from described data packet, determines the 2nd electronics according to described object address information;
Step 602: send described data packet to described 2nd electronics;
Step 603: judge whether to receive the response information for described data packet that described 2nd electronics returns, when receiving the response information for described data packet, performs step 504;Otherwise, it is pre-conditioned that described data packet meets first, and end process flow process;
Step 604: obtain send described data packet and receive between for the response information of described data packet time long;
Step 605: when length exceedes preset duration threshold value when described, it is determined that it is pre-conditioned that described data packet meets first; Wherein, time described, long threshold value can be the value arranged according to practical situation, such as can be set to 30 seconds or 2 seconds. In addition, if when length does not exceed preset duration threshold value when described, carry out subsequent disposal with regard to continuing according to current route, do not repeat here.
A kind of scene of the present embodiment can be as shown in Figure 7, it is assumed that when user passes through oneself notebook computer 70 browse network, and concrete operation is as follows:
Described first electronics 71 gets first information list from virtual special network server 74;
Notebook computer 70 sends a data packet by the first electronics 71, described first electronics 71 is according to the object address information in described data packet, determine that the object terminal to be accessed is server 75, and to be had access to server 75, it is necessary to the 2nd electronics 72 being first connected with server connects; When described first electronics 71 sends described data packet to described 2nd electronics 72, being connected with and may break down between these two equipment, so, described data packet will be caused cannot to send to the 2nd electronics 72, now, described first electronics 71 does not just receive the response information for described data packet that described 2nd electronics 72 returns, and so just can determine that described data packet meets first pre-conditioned; Or, it is also possible to described first electronics 71 can receive that the 2nd electronics 72 returns for response information, but overlong time, so can also determine that described data packet meets first pre-conditioned;
When determine described data packet meet first pre-conditioned, described first electronics 71 will according to acquiring first information list, select the 3rd electronics 73 that possesses virtual private network unit equally, set up the path between the 2nd electronics 72 by the 3rd electronics 73; The VPN data bag after encapsulating is sent to the 2nd electronics 72 by the path set up, and then described 2nd electronics 72 VPN data bag according to VPN protocol analysis, obtain original data packet, according to the object address information in described data packet, send described data packet to server 75.
Visible, by such scheme, just after reception of the data packet, can send unsuccessfully or send time-out, the first bandwidth of virtual private network unit will be used to send described data packet. So, ensure that the access bandwidth of virtual private network, thus ensure access speed, promote the experience of user.
Embodiment three,
Embodiments providing a kind of information processing method, be applied to the first electronics, described first electronics possesses virtual private network unit, and described method comprises:
Receive data packet;
Judge whether described data packet meets first pre-conditioned, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out;
When described data packet meet first pre-conditioned time, send described data packet by the first bandwidth of described virtual private network unit; Wherein, described first bandwidth is described first electronics is the bandwidth that described virtual private network unit is reserved.
Here, described first electronics can be router.
Described data packet can for being needed the data of the 2nd electronics being sent in outer net by Intranet by described first electronics; Its content can comprise: source internet protocol (IP) address, object IP address, protocol version, life cycle etc.
Described the first bandwidth by virtual private network unit sends described data packet: by means of only, in the first electronics, the virtual private network unit that total transmission bandwidth is the first bandwidth sends data packet.
Preferably, the present embodiment can also comprise acquisition first information list; The address information comprised in above-mentioned first information list can be the IP address information of described electronics; Described status information can comprise: whether virtual special network function is in identification information, the residue bandwidth of using state.
Further, the method for described acquisition first information list can be: obtains in the virtual special network server preset from network. Such as, shown in Fig. 4, the first electronics 41 gets first information list from the virtual special network server 42 network.
Described the first bandwidth by described virtual private network unit sends described data packet, comprising: the object address information getting described data packet; The 2nd corresponding electronics is determined according to described object address information; Choose according to described first information list and meet the 2nd the 3rd pre-conditioned electronics; Described virtual private network unit is set up and is set up the path between described 2nd electronics by described 3rd electronics, controls described virtual private network unit and utilizes the first bandwidth by described path by described Packet Generation extremely described 2nd electronics.
Preferably, described determine that the 2nd corresponding electronics can comprise according to described object address information: the object address information in data packet is the IP address, inside of the object terminal being finally connected to; After described first electronics receives described data packet, check the object address information in data packet, determine to connect the 2nd electronics of described object terminal according to described object address information, and utilize the address information of described 2nd electronics to be undertaken described data packet encapsulating and obtain new virtual private network (VPN) data packet. Wherein, the method that described encapsulation obtains new VPN data bag can encapsulate according to VPN agreement.
Described choosing according to described first information list meets the 2nd the 3rd pre-conditioned electronics, it is possible to comprising: choose, according to the status information of the electronics of described first information list, the 3rd electronics that tape remaining is wider than predetermined threshold value; Wherein, described predetermined threshold value can be the numerical value arranged according to practical situation.
Described virtual private network unit is set up and can be comprised by the path between described 3rd electronics foundation and described 2nd electronics: first set up the first sub-path between described virtual private network unit and described 3rd electronics; Then the 2nd sub-path between described 3rd electronics and described 2nd electronics is set up; Using described first sub-path and the 2nd sub-path jointly as path.
Controlling described virtual private network unit utilizes the first bandwidth by described path by described Packet Generation to described 2nd electronics to be: controls described virtual private network unit and utilizes described first bandwidth to send the VPN data bag after described encapsulation to described 2nd electronics;
It should be appreciated that after described 2nd electronics receives described VPN data bag, resolved by this VPN data bag, obtain data packet, send described data packet to object terminal according to the object address information in described data packet.Wherein, the packet header of VPN data bag is mainly first peeled off by the process of Xie Bao, then VPN data bag is reduced into original data packet; Process for described 2nd electronics no longer repeats here. Further, treating processes and the said process of the data packet that object terminal returns are the same, and so, the terminal being in heterogeneous networks just can communication mutually. Wherein, described object terminal can be the terminating unit of user, it is possible to think the server in network.
Described judge whether described data packet meets the first pre-conditioned method and can comprise following two kinds of scenes:
Scene one, from described data packet, extract object address information, determine the 2nd electronics according to described object address information; Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns, when not receiving the response information for described data packet, it is determined that it is pre-conditioned that described data packet meets first; Otherwise, it is pre-conditioned that described data packet does not meet first, carries out subsequent disposal according to the mode of normal forwarding data bag.
Scene two, from described data packet, extract object address information, determine the 2nd electronics according to described object address information; Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns, when receiving the response information for described data packet, obtain send described data packet and receive between for the response information of described data packet time long; When described, length exceedes preset duration threshold value, it is determined that it is pre-conditioned that described data packet meets first; Wherein, time described, long threshold value can be the value arranged according to practical situation, such as can be set to 30 seconds or 2 seconds;
Otherwise, it is pre-conditioned that described data packet does not meet first, carries out subsequent disposal according to the mode of normal forwarding data bag, and end process flow process.
Further, described first electronics also can declare self to possess virtual private network unit to network, it may be possible to provide virtual special network function, and concrete enforcement mode comprises following two kinds:
Mode one, as shown in Figure 8, comprise
Step 801: the parameter obtaining described virtual private network unit, described parameter comprises the first bandwidth of described virtual private network unit;
Step 802: utilize the parameter of described virtual private network unit described first information list to be upgraded;
Step 803: the described first information list after Share update.
Wherein, the described method sharing the described first information list after described renewal can comprise: described first information list is sent to all electronicss possessing virtual private network unit; Or it is that described first information list is sent to described virtual special network server, preserves the described first information list after upgrading by described virtual special network server, use the described first information list after upgrading for other electronicss.
Mode two, as shown in Figure 9, comprise
Step 901: the first bandwidth being set to the distribution of described virtual private network unit;
Step 902: send the first notice to virtual special network server so that described virtual special network server upgrades described first information list according to described first notice; Wherein, described first notice comprises: the notice possessing virtual special network function, and the first bandwidth for described virtual special network function. So, described first electronics just can declare the virtual private network services ability of self to virtual special network server, and the first bandwidth can be provided to serve for other electronicss possessing virtual special network function.
Visible, by such scheme, just after reception of the data packet, can send unsuccessfully or send time-out, the first bandwidth of virtual private network unit will be used to send described data packet.So, ensure that the access bandwidth of virtual private network, thus ensure access speed, promote the experience of user.
Embodiment four,
Embodiments provide a kind of electronics, as shown in Figure 10, comprising:
Receive unit 1001, for receiving data packet;
Information process unit 1002, pre-conditioned for judging whether described data packet meets first, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out; When described data packet meet first pre-conditioned time, control virtual private network unit send described data packet;
Virtual private network unit 1003, sends described data packet for the control according to information process unit by the first bandwidth; Wherein, described first bandwidth is reserved bandwidth.
Here, described data packet can for being needed the data of the 2nd electronics being sent in outer net by Intranet by described first electronics; Its content can comprise: source internet protocol (IP) address, object IP address, protocol version, life cycle etc.
Described the first bandwidth by virtual private network unit sends described data packet: by means of only, in the first electronics, the virtual private network unit that total transmission bandwidth is the first bandwidth sends data packet.
A kind of enforcement scene of the present embodiment can be as shown in Figure 2, when user is by notebook computer browse network, a request information is sent by electronics 21, i.e. data packet, described first electronics determine described data packet meet first pre-conditioned time, sending described data packet to the 2nd electronics in network by the first bandwidth of electronics 21 self, described 2nd electronics can be a server.
Visible, by such scheme, just after reception of the data packet, can send unsuccessfully or send time-out, the first bandwidth of virtual private network unit will be used to send described data packet. So, ensure that the access bandwidth of virtual private network, thus ensure access speed, promote the experience of user.
Embodiment five,
Embodiments provide a kind of electronics, as shown in figure 11, comprising:
Receive unit 1101, for receiving data packet;
Information process unit 1102, pre-conditioned for judging whether described data packet meets first, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out; When described data packet meet first pre-conditioned time, control virtual private network unit send described data packet;
Virtual private network unit 1103, sends described data packet for the control according to information process unit by the first bandwidth; Wherein, described first bandwidth is reserved bandwidth.
Described electronics also comprises: storage unit 1104, for storing first information list; Accordingly, described reception unit 1101, also for getting first information list, described first information list comprises address information and the status information of one or more electronics possessing virtual private network unit.
Described information process unit 1102, specifically for getting the object address information of described data packet; The 2nd corresponding electronics is determined according to described object address information; Choose according to the described first information list in described storage unit 1104 and meet the 2nd the 3rd pre-conditioned electronics; Control described virtual private network unit to set up by the path between described 3rd electronics foundation and described 2nd electronics, control described virtual private network unit and utilize the first bandwidth by described path by described Packet Generation extremely described 2nd electronics.
Described data packet can for being needed the data of the 2nd electronics being sent in outer net by Intranet by described first electronics;Its content can comprise: source internet protocol (IP) address, object IP address, protocol version, life cycle etc.
The address information comprised in above-mentioned first information list can be the IP address information of described electronics; Described status information can comprise: whether virtual special network function is in identification information, the residue bandwidth of using state. Such as, shown in Fig. 4, the first electronics 41 gets first information list from the virtual special network server 42 network.
Preferably, described information process unit, after receiving described data packet, check the object address information in data packet, determine to connect the 2nd electronics of described object terminal according to described object address information, and utilize the address information of described 2nd electronics to be undertaken described data packet encapsulating obtaining new VPN data bag.
Described information process unit, the status information specifically for the electronics according to described first information list chooses the 3rd electronics that tape remaining is wider than predetermined threshold value; Wherein, described predetermined threshold value can be the numerical value arranged according to practical situation.
Described virtual private network unit, specifically for the first sub-path set up between described 3rd electronics; Then the 2nd sub-path between described 3rd electronics and described 2nd electronics is set up; Using described first sub-path and the 2nd sub-path jointly as path.
Described virtual private network unit, specifically for utilizing described first bandwidth to send the VPN data bag after described encapsulation to described 2nd electronics.
Described information process unit, specifically for extracting object address information from described data packet, determines the 2nd electronics according to described object address information; Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns, when not receiving the response information for described data packet, it is determined that it is pre-conditioned that described data packet meets first; Otherwise, it is pre-conditioned that described data packet does not meet first, carries out subsequent disposal according to the mode of normal forwarding data bag.
Or,
Described information process unit, specifically for extracting object address information from described data packet, determines the 2nd electronics according to described object address information; Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns; When receiving the response information for described data packet, obtain send described data packet and receive between for the response information of described data packet time long; When described, length exceedes preset duration threshold value, it is determined that it is pre-conditioned that described data packet meets first; Otherwise, it is pre-conditioned that described data packet does not meet first, carries out subsequent disposal according to the mode of normal forwarding data bag, and end process flow process; Wherein, time described, long threshold value can be the value arranged according to practical situation, such as can be set to 30 seconds or 2 seconds.
Visible, by such scheme, just after reception of the data packet, can send unsuccessfully or send time-out, the first bandwidth of virtual private network unit will be used to send described data packet. So, ensure that the access bandwidth of virtual private network, thus ensure access speed, promote the experience of user.
Embodiment six,
Embodiments provide a kind of electronics, as shown in figure 12, comprising:
Receive unit 1201, for receiving data packet;
Information process unit 1202, pre-conditioned for judging whether described data packet meets first, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out; When described data packet meet first pre-conditioned time, control virtual private network unit send described data packet;
Virtual private network unit 1203, sends described data packet for the control according to information process unit by the first bandwidth; Wherein, described first bandwidth is reserved bandwidth.
Described data packet can for being needed the data of the 2nd electronics being sent in outer net by Intranet by described first electronics; Its content can comprise: source internet protocol (IP) address, object IP address, protocol version, life cycle etc.
Preferably, described electronics also comprises: storage unit 1204, for storing first information list; Accordingly, described reception unit 1201, also for getting first information list, described first information list comprises address information and the status information of one or more electronics possessing virtual private network unit. The address information comprised in above-mentioned first information list can be the IP address information of described electronics; Described status information can comprise: whether virtual special network function is in identification information, the residue bandwidth of using state.
Described virtual private network unit, specifically for getting the object address information of described data packet; The 2nd corresponding electronics is determined according to described object address information; Choose according to described first information list and meet the 2nd the 3rd pre-conditioned electronics; Described virtual private network unit is set up and is set up the path between described 2nd electronics by described 3rd electronics, controls described virtual private network unit and utilizes the first bandwidth by described path by described Packet Generation extremely described 2nd electronics.
Preferably, described information process unit, after receiving described data packet specifically for electronics, check the object address information in data packet, determine to connect the 2nd electronics of described object terminal according to described object address information, and utilize the address information of described 2nd electronics to be undertaken described data packet encapsulating and obtain new virtual private network (VPN) data packet. Wherein, the method that described encapsulation obtains new VPN data bag can encapsulate according to VPN agreement.
Described information process unit, the status information specifically for the electronics according to described first information list chooses the 3rd electronics that tape remaining is wider than predetermined threshold value; Wherein, described predetermined threshold value can be the numerical value arranged according to practical situation.
The first sub-path between described virtual private network unit and described 3rd electronics; Then the 2nd sub-path between described 3rd electronics and described 2nd electronics is set up; Using described first sub-path and the 2nd sub-path jointly as path.
Described virtual private network unit utilizes described first bandwidth to send the VPN data bag after described encapsulation to described 2nd electronics; It should be appreciated that after described 2nd electronics receives described VPN data bag, resolved by this VPN data bag, obtain data packet, send described data packet to object terminal according to the object address information in described data packet. Wherein, the packet header of VPN data bag is mainly first peeled off by the process of Xie Bao, then VPN data bag is reduced into original data packet;Process for described 2nd electronics no longer repeats here. Further, treating processes and the said process of the data packet that object terminal returns are the same, and so, the terminal being in heterogeneous networks just can communication mutually.
Described information process unit, specifically for extracting object address information from described data packet, determines the 2nd electronics according to described object address information; Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns, when not receiving the response information for described data packet, it is determined that it is pre-conditioned that described data packet meets first;
Or,
Described information process unit, specifically for extracting object address information from described data packet, determines the 2nd electronics according to described object address information; Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns; When receiving the response information for described data packet, obtain send described data packet and receive between for the response information of described data packet time long; When described, length exceedes preset duration threshold value, it is determined that it is pre-conditioned that described data packet meets first. .
Further, described electronics also can declare self to possess virtual private network unit to network, it may be possible to provide virtual special network function, and described electronics also comprises: sends unit 1205, for the first information list after Share update; Accordingly, described information process unit 1202, specifically for obtaining the parameter of described virtual private network unit, described parameter comprises the first bandwidth of described virtual private network unit; The parameter of described virtual private network unit is utilized described first information list to be upgraded.
Wherein, the described method sharing the described first information list after described renewal can comprise: described first information list is sent to all electronicss possessing virtual private network unit; Or it is that described first information list is sent to described virtual special network server, preserves the described first information list after upgrading by described virtual special network server, use the described first information list after upgrading for other electronicss.
Or,
Send unit 1205, for sending the first notice to virtual special network server; Accordingly, described information process unit 1202, also for setting the first bandwidth distributed for described virtual private network unit; Described virtual special network server is made to upgrade described first information list according to described first notice; Wherein, described first notice comprises: the notice possessing virtual special network function, and the first bandwidth for described virtual special network function. So, described first electronics just can declare the virtual private network services ability of self to virtual special network server, and the first bandwidth can be provided to serve for other electronicss possessing virtual special network function. Send described in the present embodiment unit 1205 can for possessing the unit of route function, for finding virtual special network server by network.
Visible, by such scheme, just after reception of the data packet, can send unsuccessfully or send time-out, the first bandwidth of virtual private network unit will be used to send described data packet.So, ensure that the access bandwidth of virtual private network, thus ensure access speed, promote the experience of user.
In several embodiments that the application provides, it should be appreciated that, disclosed equipment can realize by another way. Apparatus embodiments described above is only schematic, and actual can have other dividing mode when realizing, as some features can be ignored. In addition, the coupling each other of shown or discussed each integral part or directly coupling or communication connection can be the indirect coupling by some interfaces, equipment or unit or communication connection, it is possible to be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
The above; it is only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any it is familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention. Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (12)

1. an information processing method, is applied to the first electronics, and described first electronics possesses virtual private network unit, and described method comprises:
Receive data packet;
Judge whether described data packet meets first pre-conditioned, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out;
When described data packet meet first pre-conditioned time, send described data packet by the first bandwidth of described virtual private network unit;
Wherein, described first bandwidth is described first electronics is the bandwidth that described virtual private network unit is reserved.
2. method according to claim 1, it is characterised in that, described method also comprises:
Getting first information list, described first information list comprises address information and the status information of one or more electronics possessing virtual private network unit.
3. method according to claim 2, it is characterised in that, described the first bandwidth by described virtual private network unit sends described data packet, comprising:
Get the object address information of described data packet;
The 2nd corresponding electronics is determined according to described object address information;
Choose according to described first information list and meet the 2nd the 3rd pre-conditioned electronics;
Described virtual private network unit is set up and is set up the path between described 2nd electronics by described 3rd electronics, controls described virtual private network unit and utilizes the first bandwidth by described path by described Packet Generation extremely described 2nd electronics.
4. method according to claim 2, it is characterised in that, described to judge whether described data packet meets first pre-conditioned, comprising:
From described data packet, extract object address information, determine the 2nd electronics according to described object address information;
Send described data packet to described 2nd electronics;
Judge whether to receive the response information for described data packet that described 2nd electronics returns,
When not receiving the response information for described data packet, it is determined that it is pre-conditioned that described data packet meets first;
Or,
From described data packet, extract object address information, determine the 2nd electronics according to described object address information;
Send described data packet to described 2nd electronics;
Judge whether to receive the response information for described data packet that described 2nd electronics returns;
When receiving the response information for described data packet, obtain send described data packet and receive between for the response information of described data packet time long;
When described, length exceedes preset duration threshold value, it is determined that it is pre-conditioned that described data packet meets first.
5. method according to claim 2, it is characterised in that, described method also comprises:
Obtaining the parameter of described virtual private network unit, described parameter comprises the first bandwidth of described virtual private network unit;
The parameter of described virtual private network unit is utilized described first information list to be upgraded;
Described first information list after Share update.
6. method according to claim 2, it is characterised in that, described method also comprises:
It is set to the first bandwidth of described virtual private network unit distribution;
Send the first notice to virtual special network server so that described virtual special network server upgrades described first information list according to described first notice; Wherein, described first notice comprises: the notice possessing virtual special network function, and the first bandwidth for described virtual special network function.
7. an electronics, described electronics comprises:
Receive unit, for receiving data packet;
Information process unit, pre-conditioned for judging whether described data packet meets first, the described first described Packet Generation failure of pre-conditioned sign or transmission time-out; When described data packet meet first pre-conditioned time, control virtual private network unit send described data packet;
Virtual private network unit, sends described data packet for the control according to information process unit by the first bandwidth; Wherein, described first bandwidth is reserved bandwidth.
8. electronics according to claim 7, it is characterised in that, described electronics also comprises:
Storage unit, for storing first information list;
Accordingly, described reception unit, also for getting first information list, described first information list comprises address information and the status information of one or more electronics possessing virtual private network unit.
9. electronics according to claim 8, it is characterised in that,
Described information process unit, specifically for getting the object address information of described data packet; The 2nd corresponding electronics is determined according to described object address information; Choose according to the described first information list in described storage unit and meet the 2nd the 3rd pre-conditioned electronics; Control described virtual private network unit to set up by the path between described 3rd electronics foundation and described 2nd electronics, control described virtual private network unit and utilize the first bandwidth by described path by described Packet Generation extremely described 2nd electronics.
10. electronics according to claim 8, it is characterised in that,
Described information process unit, specifically for extracting object address information from described data packet, determines the 2nd electronics according to described object address information; Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns, when not receiving the response information for described data packet, it is determined that it is pre-conditioned that described data packet meets first;
Or,
Described information process unit, specifically for extracting object address information from described data packet, determines the 2nd electronics according to described object address information;Send described data packet to described 2nd electronics; Judge whether to receive the response information for described data packet that described 2nd electronics returns; When receiving the response information for described data packet, obtain send described data packet and receive between for the response information of described data packet time long; When described, length exceedes preset duration threshold value, it is determined that it is pre-conditioned that described data packet meets first.
11. electronicss according to claim 8, it is characterised in that, described electronics also comprises:
Send unit, for the first information list after Share update;
Accordingly, described information process unit, specifically for obtaining the parameter of described virtual private network unit, described parameter comprises the first bandwidth of described virtual private network unit; The parameter of described virtual private network unit is utilized described first information list to be upgraded.
12. electronicss according to claim 8, it is characterised in that, described electronics also comprises:
Send unit, for sending the first notice to virtual special network server;
Accordingly, described information process unit, also for setting the first bandwidth distributed for described virtual private network unit; Described virtual special network server is made to upgrade described first information list according to described first notice; Wherein, described first notice comprises: the notice possessing virtual special network function, and the first bandwidth for described virtual special network function.
CN201410674847.8A 2014-11-21 2014-11-21 information processing method and electronic equipment Active CN105656812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410674847.8A CN105656812B (en) 2014-11-21 2014-11-21 information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410674847.8A CN105656812B (en) 2014-11-21 2014-11-21 information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105656812A true CN105656812A (en) 2016-06-08
CN105656812B CN105656812B (en) 2020-01-31

Family

ID=56480329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410674847.8A Active CN105656812B (en) 2014-11-21 2014-11-21 information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105656812B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212374A (en) * 2006-12-29 2008-07-02 北大方正集团有限公司 Method and system for remote access to campus network resources
CN101217457A (en) * 2007-12-28 2008-07-09 华为技术有限公司 A method to realize fast reroute and router
CN102158385A (en) * 2010-11-23 2011-08-17 东莞宇龙通信科技有限公司 Data information transmission device and method applied to mobile terminal
CN103312579A (en) * 2013-05-29 2013-09-18 深信服网络科技(深圳)有限公司 Line switching method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212374A (en) * 2006-12-29 2008-07-02 北大方正集团有限公司 Method and system for remote access to campus network resources
CN101217457A (en) * 2007-12-28 2008-07-09 华为技术有限公司 A method to realize fast reroute and router
CN102158385A (en) * 2010-11-23 2011-08-17 东莞宇龙通信科技有限公司 Data information transmission device and method applied to mobile terminal
CN103312579A (en) * 2013-05-29 2013-09-18 深信服网络科技(深圳)有限公司 Line switching method and device

Also Published As

Publication number Publication date
CN105656812B (en) 2020-01-31

Similar Documents

Publication Publication Date Title
US9398479B2 (en) Multi-device monitoring and control using intelligent device channel sharing
CN102368764B (en) A kind of method, system and client communicated by multi-point login
CN104917838B (en) A kind of realization method and system of redirection of router
CN105739460A (en) Method and device for automatically generating control interface of Internet-of-Things household appliances
CN104040997A (en) Vendor specific base station auto - configuration framework
CN101262478A (en) Method and device for penetrating NAT
CN108306758B (en) Method for realizing access to internal network and external network of indoor distributed antenna system
CN111741538A (en) Communication link establishing method based on gateway, equipment control method and device
US20150280961A1 (en) Network extension system, control apparatus, and network extension method
CN102025641B (en) Message filtering method and exchange equipment
CN104426816B (en) A kind of virtual machine communication method and device
US20150215170A1 (en) Network card with searching ability, monitoring device with the network card, and searching method used for the same
CN105049546A (en) Client terminal IP address allocation method through DHCP server and device thereof
CN107113333A (en) The configuration of server apparatus
CN103138961B (en) server control method, controlled server and central control server
CN105050028A (en) Method and device for controlling household appliances
CN102480476A (en) Multi-service access method based on DHCP protocol extension
CN107968725A (en) Home gateway haplotype terminal equipment configuration information returns and collocation method, equipment
CN108011825B (en) Multi-network equipment interconnection reality method and system based on software defined network
CN103227733A (en) Topology discovery method and topology discovery system
US20180302240A1 (en) Method, device, and system for determining generic routing encapsulation gre tunnel identifier
CN105656812A (en) Information processing method and electronic device
CN106936615A (en) A kind of message processing method and device
CN108900653A (en) One kind realizing cross-network segment search system based on onvif agreement and data link layer
CN103619032A (en) Wireless routing equipment optimizing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant