The utility model content
The utility model embodiment provides a kind of network equipment, thereby breaks through the bandwidth constraints of single wireless data card, improves speed of download.
The utility model provides a kind of network equipment, comprising: processing unit, output interface and at least two input interfaces, and described input interface is connected with described processing unit respectively with described output interface;
Each described input interface is used to connect a wireless data card;
Described output interface is used to connect user terminal;
Described processing unit, be used for generating the block count N of target data according to the data volume of the packet of each wireless data card correspondence of the data volume of the target data that goes out from server lookup and setting, and send the connection request that comprises described block count N to described server by the wireless data card of arbitrary described input interface and this input interface correspondence, according to described block count N described target data is carried out piecemeal by described server and handle and generate N sub-block; Carry out caching process by the packet of each described input interface receiving radio data card this wireless data card correspondence from i the sub-block that described server obtains and with the packet that receives; Packet in described i the sub-block that receives is merged processing generate described i sub-block; By described output interface described i sub-block sent to described user terminal; N is a positive integer, and i is the positive integer smaller or equal to N.
Each input interface in the network equipment of the utility model embodiment connects a wireless data card, and output interface connects user terminal.The network equipment is downloaded a packet in the sub-block simultaneously by a plurality of wireless data cards, will and generate a sub-block by different radio data card data downloaded inclusion, and by output interface the sub-block that generates is sent to user terminal.A plurality of input interfaces of the utility model embodiment setting can connect a plurality of wireless data cards, the bandwidth that makes full use of a plurality of wireless data cards is come data download, break through the bandwidth constraints when adopting single wireless data card data download, thereby improved speed of download.
Embodiment
Below by drawings and Examples, the technical scheme of the utility model embodiment is described in further detail.
The structural representation of a kind of network equipment that Fig. 1 provides for the utility model embodiment one, as shown in Figure 1, this network equipment comprises processing unit 2, output interface 3 and two input interfaces 1, input interface 1 is connected with processing unit 2 respectively with output interface 3.Wherein, each input interface 1 is used to connect a wireless data card 5, and output interface 3 is used to connect user terminal 6.
Processing unit 2 generates the block count N of target data according to the data volume of the packet of each wireless data card 5 correspondence of the data volume of the target data that goes out from server lookup and setting.Wherein, can set in advance according to the bandwidth of each wireless data card 5 quantity of data packets each wireless data card 5 correspondence, the quantity of data packets of wireless data card 5 correspondences that bandwidth is high will be more than the quantity of data packets of low wireless data card 5 correspondences of bandwidth, can realize that specifically the bandwidth of each wireless data card 5 can be fully used like this by the dynamic equilibrium distribution method.For example, wireless data card 5 is corresponding to two packets among Fig. 1, and then the data volume of the packet of these wireless data card 5 correspondences is the total amount of data of two packets.
Particularly, processing unit 2 is after the data download instruction that receives user terminal 6 transmissions by output interface 3, wireless data card 5 by arbitrary input interface 1 and this input interface 1 correspondence sends query requests to server, and server receives after the query requests data volume of the target data wireless data card 5 by input interface 1 and this input interface 1 correspondence is sent to processing unit 2.Processing unit 2 can calculate the block count N of target data according to the data volume of the packet of the data volume of target data and each wireless data card 5 correspondence after inquiring the data volume of target data, N is a positive integer.Particularly: the summation of the data volume of the packet of the data volume of block count N=target data/all wireless data card correspondences.
Processing unit 2 sends the connection request message that comprises block count N by the wireless data card 5 of arbitrary input interface 1 and this input interface 1 correspondence to server; Particularly, processing unit 2 is selected arbitrary input interface to send connection request message from a plurality of input interfaces 1, and when server sends connection request message block count N is being sent to server after drawing block count N.Server is after receiving connection request message, according to block count N target data is carried out piecemeal and handle N sub-block of generation, the packet that comprises same quantity of data in each sub-block, the data volume of packet is the data volume of the packet of all wireless data card 5 correspondences in each sub-block.Server begins to carry out transfer of data by the wireless data card 5 and the network equipment after the piecemeal processing of finishing target data.
Processing unit 2 is by the packet of each input interface 1 receiving radio data card 5 these wireless data card 5 correspondences from i the sub-block that server obtains, and i is the positive integer smaller or equal to N.Processing unit 2 carries out transfer of data by wireless data card 5 and server, each wireless data card 5 can be used as a thread in the multiple spot connection, be used for downloading the packet of these wireless data card 5 correspondences of a sub-block, after having downloaded all packets in this sub-block, all wireless data cards 5 begin to carry out the download of all packets in the next sub-block, the download of packet in finishing N sub-block.
Processing unit 2 can carry out caching process to the packet in i the sub-block that receives, behind all packets in receiving i sub-block, packet in i the sub-block that receives is merged processing generate i sub-block, and send to user terminal 6 by i the sub-block that output interface 3 will generate.In other words, processing unit 2 generates N sub-block successively and N the sub-block that generates is sent to user terminal 6 successively.After user terminal 6 receives all N sub-block, N sub-block merged processing generate target data.
In the present embodiment, input interface 1 can adopt USB (Universal Serial BUS, be called for short: USB) (Wireless Local AreaNetworks is called for short: the WLAN) network interface of interface or other type for interface, Ethernet interface, WLAN (wireless local area network).Each input interface 1 can adopt the network interface of identical type or adopt the networks of different type interface, with the type of the interface that cooperates wireless data card 5.
In the present embodiment, output interface 3 also can adopt the network interface of USB interface, Ethernet interface, WLAN interface or other type.
Further, the processing unit in the present embodiment 2 can comprise enquiry module 21, generation module 22, cache module 23 and merge module 24.Enquiry module 21 is connected with input interface 1, and generation module 22 is connected with enquiry module 21, and cache module 23 is connected with input interface 1, merges module 24 and is connected with output interface 3 with cache module 23.
Enquiry module 21 is used for going out from server lookup by the wireless data card 5 of arbitrary input interface 1 and this input interface 1 correspondence the data volume of target data; The data volume of packet that generation module 22 is used for each wireless data card 5 correspondence of the data volume of the target data that inquires according to enquiry module 21 and setting generates the block count N of target data, and sends the connection request that carries described block count N to described server by the wireless data card 5 of arbitrary input interface 1 and this input interface 1 correspondence; The packet of each wireless data card 5 that cache module 23 will receive these wireless data card 5 correspondences from i the sub-block that server obtains carries out caching process; Merging module 24 is used for the packet of i the sub-block that receives is merged i sub-block of processing generation.
Further, the processing unit in the present embodiment 2 also comprises with generation module 22 is connected with input interface 1 module 25 is set.The bandwidth that module 25 can identify each wireless data card 5 by input interface 1 is set, according to the bandwidth of each wireless data card 5 that identifies the data volume of the packet of each wireless data card 5 correspondence is set, and the data volume of the packet of each wireless data card 5 correspondence is exported to generation module 22.
Each input interface in the network equipment of present embodiment connects a wireless data card, and output interface connects user terminal.The network equipment is downloaded a packet in the sub-block simultaneously by a plurality of wireless data cards, will and generate a sub-block by different radio data card data downloaded inclusion, and by output interface the sub-block that generates is sent to user terminal.A plurality of input interfaces of present embodiment setting can connect a plurality of wireless data cards, and the bandwidth that makes full use of a plurality of wireless data cards is come data download, have broken through the bandwidth constraints when adopting single wireless data card data download, thereby have improved speed of download.Between wireless data card and user terminal, adopt the network equipment in the present embodiment just can improve speed of download, need not operator existing equipment is carried out upgrading.Adopt the network equipment in the present embodiment, need the user to buy a plurality of wireless data cards and a plurality of SIM card, quantity thereby the network that has improved the sales volume of wireless data card of manufacturer terminal and operator is distributed telephone numbers.
The structural representation of a kind of network equipment that Fig. 2 provides for the utility model embodiment two, as shown in Figure 2, present embodiment has increased the quantity of input interface 1 on the basis of the foregoing description one, the network equipment of present embodiment can comprise a plurality of input interfaces 1, and each input interface 1 connects a wireless data card 5.By setting up input interface 1, make user terminal can adopt more wireless data card 5 data download, further improved speed of download.
The structural representation of a kind of network equipment that Fig. 3 provides for the utility model embodiment three, as shown in Figure 3, the network equipment of present embodiment also comprises a housing 4 on the basis of the foregoing description one or embodiment two.Input interface 1 and output interface 3 are arranged on the housing 4, and processing unit 2 is arranged in the housing 4.Be example with four input interfaces 1 in the present embodiment, and input interface 1 is USB interface, each input interface 1 connects a wireless data card 5.Output interface 3 in the present embodiment adopts Ethernet interfaces, RJ45 Ethernet interface for example, and this Ethernet interface is used to connect the Ethernet card of user terminal 6.When the wireless data card more than two 5 is inserted in the input interface 1, and after connecting user terminal 6 by Ethernet interface, this network equipment can improve the speed of download of user terminal 6.
The structural representation of a kind of network equipment that Fig. 4 provides for the utility model embodiment four, as shown in Figure 4, the network equipment of present embodiment also comprises a housing 4 on the basis of the foregoing description one or embodiment two.Input interface 1 and output interface 3 are arranged on the housing 4, and processing unit 2 is arranged in the housing 4.Be example with four input interfaces 1 in the present embodiment, and input interface 1 is USB interface, each input interface 1 connects a wireless data card 5.Output interface 3 in the present embodiment adopts the WLAN interface, and this WLAN interface is used to connect the wireless network card of user terminal 6.When the wireless data card more than two 5 is inserted in the input interface 1, and after connecting user terminal 6 by the WLAN interface, this network equipment can improve the speed of download of user terminal 6.And the WLAN interface that output interface 3 adopts in the present embodiment can make the network equipment possess the function of wireless route, make this network equipment can be, thereby realize the bandwidth of a plurality of wireless data cards of reasonable use more corresponding to a plurality of user terminals 6 that possess wireless network card.
It should be noted that at last: above embodiment is only in order to explanation the technical solution of the utility model but not limit it, although the utility model is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement the technical solution of the utility model, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solutions of the utility model.