CN102420725B - Method for detecting IP network bandwidth and apparatus thereof - Google Patents
Method for detecting IP network bandwidth and apparatus thereof Download PDFInfo
- Publication number
- CN102420725B CN102420725B CN201110444012.XA CN201110444012A CN102420725B CN 102420725 B CN102420725 B CN 102420725B CN 201110444012 A CN201110444012 A CN 201110444012A CN 102420725 B CN102420725 B CN 102420725B
- Authority
- CN
- China
- Prior art keywords
- base station
- file
- little base
- memory
- data
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0888—Throughput
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Abstract
An embodiment of the invention provides a method for detecting IP network bandwidth and an apparatus thereof. The IP network bandwidth can be detected without occupying too much storage space. The method comprises the following steps: a small base station downloads file data from a server and is connected to the server through an IP network; the small base station saves received data at a cache region of a memory by utilizing a virtual file system, and records data length of accumulated download; after the cache region is full, the small base station releases the cache region; after a file is downloaded, the small base station records total consumption time of downloading the file, and calculates IP network downlink bandwidth according to file total length and the total consumption time. According to a technical scheme provided by the embodiment, small base station storage space can be effectively saved when detecting the IP network bandwidth.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and apparatus that detects IP network bandwidth.
Background technology
The surge of mobile communication data business has in recent years brought very large pressure to grand network, tradition macro base station network has been difficult to meet people WiMAX has been covered, especially the demand that indoor broadband covers, disposing little base station is the good scheme addressing this problem.Little base station is a kind of base station form that is different from macro base station, little base station at aspects such as transmitting power, number of users, volume weights all than the little order of magnitude of macro base station.Little base station specifically can be divided into micro-base station Micro, femto base station Pico/ePico, Home eNodeB Femto, wireless access point AP etc., and dissimilar little base station is different in transmitting power, number of users, the network architecture.
For example, at UMTS (Universal Mobile Telecommunications System, Universal Mobile Telecommunications System) in, little base station can be UAP (UMTS Access Point, UMTS access point), UAP is a kind of brand-new UMTS WAP (wireless access point) product, it provides the UMTS of standard to serve to user, can provide a kind of low cost Indoor Coverage Solution for operator, especially, in the situation that current data business is increased sharply, UAP can effectively improve the network coverage and capacity as the effective carrier of mobile broadband.
The little base station such as UAP is generally by IP (Internet Protocol, Internet Protocol) network insertion is to mobile core network, as indoor UE (User equipment, user terminal) access point, when the little base-station transmission data such as UAP, use IP transmission, whether IP network bandwidth abundant directly has influence on user and experiences.Little base station in use, need to be used certain methods or tool detection IP network transmission bandwidth.In prior art, conventionally use FTP (File Transfer Protocol when detection bandwidth, file transfer protocol (FTP)) bandwidth detection method, use FTP to upload, download file detection bandwidth, the lasting time of detection bandwidth can not be too short in use for this method, the file of uploading or downloading can not be too little, otherwise testing result is not accurate enough, but file will take too greatly the too many storage resources of system, cause very large waste, especially for little base station, the internal memory of equipment itself or very finite sum preciousness of flash memory Flash memory, upload or download file detection bandwidth can take too much storage resources by FTP, and because being difficult to store enough large file, memory space cause testing result inaccurate.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus that detects IP network bandwidth, can detect IP network bandwidth, can not take again too much memory space.
One aspect of the present invention provides a kind of method that detects IP network bandwidth, and the method comprises:
Little base station is from server download file data, and described little base station is connected to described server via IP network;
Described little base station utilizes Virtual File System the data that receive to be stored into the buffer area of internal memory, and records the data length that accumulative total is downloaded;
Described little base station, after buffer area is full, discharges described buffer area;
Described little base station is after described file has been downloaded, and record is downloaded described file and amounted to elapsed time, calculates described IP network downlink bandwidth according to described file total length and described total elapsed time.
The present invention provides a kind of method that detects IP network bandwidth on the other hand, and the method comprises:
Little base station is specified virtual file filename, file size information and described information is sent to server, and described little base station is connected to described server via IP network;
Described little base station utilizes Virtual File System build file data blocks and described data block is uploaded to described server;
Receive after the acknowledge message of server reply described little base station, continues to carry out previous step;
Described little base station reaches at the data block total length of uploading after the file size of specifying described little base station, stop building data block, record the total elapsed time of uploading data piece, utilize the file size of described appointment and described total elapsed time to calculate described IP network uplink bandwidth.
Another aspect of the invention provides a kind of little base station of detecting IP network bandwidth, and described little base station comprises:
Receiver: for from server download file data;
Memory: the data of downloading for receiver described in buffer memory, discharge memory space completely afterwards at memory space;
Processor: the data length of downloading for recording described receiver accumulative total, and control completely afterwards described memory release memory space in memory storage space, described processor is also downloaded described file for record after having downloaded at file and is amounted to elapsed time, calculates IP network downlink bandwidth according to described file total length and described total elapsed time.
Further aspect of the present invention provides a kind of little base station of detecting IP network bandwidth, and described little base station comprises:
Transmitter: the data block building for virtual file name, file size and described processor that described processor is specified is uploaded onto the server;
Receiver: the acknowledge message that receives described data block of replying for receiving described server;
Processor: be used to specify virtual file name, file size and structure file data blocks, the data block total length of uploading at described transmitter reaches after the file size of described appointment, stop building data block and record the total elapsed time of uploading described data block, utilizing the file size of described appointment and amount to elapsed time and calculate IP network uplink bandwidth;
Memory: the data block building for processor described in buffer memory.
The method and the little base station that provide by the application embodiment of the present invention, little base station utilizes Virtual File System storage or builds file, file is not stored in to flash memory Flash or other permanent memory, but be stored in one section of buffer area of internal memory, effectively save memory space, simultaneously due to the read-write of having avoided memories such as Flash, save and uploaded or time that download file uses, improve bandwidth detection precision.
Accompanying drawing explanation
A kind of method flow diagram that detects IP network bandwidth that Fig. 1 provides for the embodiment of the present invention one;
A kind of method flow diagram that detects IP network bandwidth that Fig. 2 provides for the embodiment of the present invention two;
A kind of little base station schematic diagram that detects IP network bandwidth that Fig. 3 provides for the embodiment of the present invention three;
A kind of little base station schematic diagram that detects IP network bandwidth that Fig. 4 provides for the embodiment of the present invention four.
Embodiment
For making object of the present invention, technical scheme and advantage express clearlyer, describe technical scheme provided by the invention in detail below in conjunction with specific embodiments and the drawings.
The embodiment of the present invention one discloses a kind of method that detects IP network bandwidth, utilizes little base station to detect IP network bandwidth from server download file.In the time of download file, because the file of downloading is larger, internal memory and the Flash storage space of little base station itself are limited, little base station adopts Virtual File System VFS (Virtual File System) to save memory space, do not preserve whole file content, only preserve the information such as file size, filename.Little base station is from server download file data, and described little base station is connected to described server via IP network; Little base station utilizes Virtual File System the data that receive to be stored into the buffer area of internal memory, and records the data length that accumulative total is downloaded; Little base station, after buffer area is full, discharges described buffer area; The circulation of little base station is carried out above three steps until described file has been downloaded, and little base station record is downloaded described file and amounted to elapsed time, calculates described IP network bandwidth according to described file total length and described total elapsed time.
As shown in Figure 1, the little base station download file that utilizes providing for the embodiment of the present invention one detects the method flow diagram of IP network bandwidth, and idiographic flow is as follows:
Little base station during from server downloading data, can be used TCP (Transmission Control Protocol, transmission control protocol) agreement or UDP (User Datagram Protocol, User Datagram Protoco (UDP)) agreement.
In the embodiment of the present invention, buffer area is one section of region of memory of little base station, and its size can be set flexibly according to factors such as the memory sizes of little base station, such as 64KB, 128KB etc.When little base station receives file, whole file is not stored, but utilize Virtual File System that file block is saved in to buffer area.
After step 103, buffer area are expired, little base station discharges described buffer area, gets back to step 101.
In the embodiment of the present invention one, little base station is during from server download file, whole file is not preserved, but utilize Virtual File System to store the data that download to into memory cache district, the data length that record is downloaded simultaneously, after buffer area is full with regard to buffer area, continue to receive next data segment, same section of region of memory recycled in little base station, can not take too much internal memory or Flash resource, effectively saved the storage resources of little base station.
The embodiment of the present invention two discloses a kind of method that detects IP network bandwidth, utilizes the upload file of little base station to detect IP network bandwidth.Little base station is specified virtual file filename, file size information and described information is sent to server, and described little base station is connected to described server via IP network; Little base station utilizes Virtual File System build file data blocks and described data block is uploaded to described server; Receive after the acknowledge message of server reply little base station, continues to carry out previous step, until the data block total length of uploading reaches the file size that specify described little base station; The total elapsed time of uploading data piece is recorded in little base station, utilizes the file size of described appointment and described total elapsed time to calculate described IP network bandwidth.
As shown in Figure 2, the little base station upload file that utilizes providing for the embodiment of the present invention two detects the method flow diagram of IP network bandwidth, and idiographic flow is as follows:
The information such as virtual file filename, file size are specified in step 201, little base station, and described little base station is connected to server via IP network.
In the embodiment of the present invention, little base station is in the time specifying virtual file length, need to consider the time of Sampling network bandwidth consumption and the accuracy of testing result, file size is longer, the testing result time more accurate but that consume obtaining is also longer, therefore need to consider these two factors suitable file size is set, file size also can be by webmaster personnel setting.
The information such as virtual file name, file size is sent to server by step 202, little base station.
Step 203, little base station utilize Virtual File System build file data blocks and described data block is uploaded to server.
In the present embodiment, the size of data block can be set according to the flexible in size of the internal memory in little base station own, for example 64KB, 128KB etc.Little base station, in the time utilizing Virtual File System to build data block, because data content does not need verification, can be used random data while building data block.
When little base station uploading data piece, can use Transmission Control Protocol or udp protocol.
Step 204, server are received after described data block, reply acknowledge message to little base station.
Step 205, little base station are received after the acknowledge message of server reply, are got back to step 203.
Step 203 loops to 205, until the data block total length that upload little base station reaches the file size that specify little base station, little base station stops building data block execution step 206.
The total elapsed time of uploading data piece is recorded in step 206, little base station, utilizes the file size of described appointment and amounts to elapsed time and calculate described IP network uplink bandwidth.
In the embodiment of the present invention two, virtual file name and file size are specified in little base station, then utilize Virtual File System to create data block, data segment is uploaded onto the server, until reach after the file size of appointment, stop building data block, little base station utilizes the total elapsed time of uploading data piece and the file size computing network bandwidth of appointment.In this way, integrity check is not carried out to the file building in little base station, also file data blocks is not stored into Flash or other permanent memory, only utilizes one section of region of internal memory, has effectively saved little base station stored resource.
It should be noted that, in the embodiment of the present invention one and embodiment bis-, server can be ftp server, also can be other type servers, as long as little base station can upload to the file of suitable size core net or download from core net, just can go out the network bandwidth according to the Time Calculation of file size and transfer files.In embodiment mono-and embodiment bis-, transport layer has better real-time while using udp protocol transmission data, can improve accuracy of detection.
The method of the detection bandwidth in embodiment mono-and embodiment bis-can also be for detection of the bandwidth of network between two little base stations, and now server need to be served as in a little base station, and another little base station is as client.
The embodiment of the present invention three provides a kind of little base station of detecting IP network bandwidth, and as shown in Figure 3, described little base station comprises receiver 301, memory 302 and processor 303, wherein:
Receiver 301: for from server download file data.
Memory 302: the data of downloading for buffer memory receiver, discharge memory space completely afterwards at memory space.
Processor 303: the data length of downloading for recording receiver accumulative total, and control completely afterwards described memory release memory space in memory storage space, processor also amounts to elapsed time for recording download file after having downloaded at file, calculates IP network downlink bandwidth according to file total length and total elapsed time.
In the present embodiment, memory 302 can be one section of region of little base station internal memory.
The little base station that embodiment tri-provides is when from server download file, be not that whole file is stored in to flash memory Flash or other permanent memory, but be buffered in one section of region of internal memory, it is buffer area, when buffer area just abandons the data of preservation after completely, only record data length, after whole file has been downloaded, utilize download file to amount to elapsed time and file total length computing network bandwidth.By the little base station Sampling network bandwidth in this embodiment, only use one section of buffer area of internal memory, effectively save memory space.
The embodiment of the present invention four provides a kind of little base station of detecting IP network bandwidth, and as shown in Figure 4, described little base station comprises transmitter 401, receiver 402, processor 403 and memory 404, wherein:
Transmitter 401: for the data block of the information such as virtual file name, file size of processor appointment and processor structure is uploaded onto the server.
Receiver 402: the acknowledge message that receives described data block of replying for reception server.
Processor 403: be used to specify the information such as virtual file name, file size and build file data blocks, the data block total length of uploading at transmitter reaches after the file size of appointment, stop building data block and record the total elapsed time of uploading data piece, utilize the file size of specifying and amount to elapsed time and calculate IP network uplink bandwidth.
Memory 404: the data block building for cache processor.
In the present embodiment, memory 404 can be one section of region of little base station internal memory, and the data-block cache that processor builds, at memory, is then uploaded onto the server.
The data block data that processor 403 builds can be random data.
The little base station that embodiment tetra-provides is when to server up transfer file, not to upload the file being stored in flash memory Flash or other permanent memory, but repeatedly build file data blocks and be uploaded to server, until reach the file size of appointment, final file size and the total elapsed time computing network bandwidth of specifying utilized.By the little base station Sampling network bandwidth in this embodiment, only use one section of region of internal memory, can effectively save the memory space of little base station.
It should be noted that, the internal memory in all embodiment of the present invention typically refers to random access memory ram.The method and the little base station that provide by the application embodiment of the present invention, little base station utilizes Virtual File System storage or builds file, file is not stored in to Flash or other permanent memory, but be stored in one section of region of internal memory, effectively save memory space, simultaneously due to the read-write of having avoided memories such as Flash, save and uploaded or time that download file uses, improve bandwidth detection precision.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential hardware platform by software and realize, and can certainly all implement by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions, in order to make a computer equipment, can be personal computers, server, or the network equipment etc., carry out the method described in some part of each embodiment of the present invention or embodiment.
Above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (3)
1. a method that detects IP network bandwidth, is characterized in that, comprising:
Little base station is from server download file data, and described little base station is connected to described server via IP network;
Described little base station utilizes Virtual File System the data that receive to be stored into the buffer area of internal memory, and records the data length that accumulative total is downloaded;
Described little base station, after buffer area is full, discharges described buffer area;
Described little base station is after described file has been downloaded, and record is downloaded described file and amounted to elapsed time, calculates described IP network downlink bandwidth according to described file total length and described total elapsed time;
Described buffer size is set according to described little base station memory size.
2. the method for claim 1, is characterized in that, described little base station during from server download file data, is used transmission control protocol Transmission Control Protocol or User Datagram Protoco (UDP) udp protocol.
3. a little base station of detecting IP network bandwidth, is characterized in that, comprises receiver, memory and processor, wherein:
Described receiver: for from server download file data;
Described memory: the data of downloading for receiver described in buffer memory, discharge completely afterwards memory space at memory space, described memory is one section of region of described little base station internal memory;
Described processor: the data length of downloading for recording described receiver accumulative total, and control completely afterwards described memory release memory space in memory storage space, described processor is also downloaded described file for record after having downloaded at file and is amounted to elapsed time, calculates IP network downlink bandwidth according to described file total length and described total elapsed time.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110444012.XA CN102420725B (en) | 2011-12-27 | 2011-12-27 | Method for detecting IP network bandwidth and apparatus thereof |
PCT/CN2012/087678 WO2013097745A1 (en) | 2011-12-27 | 2012-12-27 | Method and device for detecting ip network bandwidth |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110444012.XA CN102420725B (en) | 2011-12-27 | 2011-12-27 | Method for detecting IP network bandwidth and apparatus thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102420725A CN102420725A (en) | 2012-04-18 |
CN102420725B true CN102420725B (en) | 2014-05-21 |
Family
ID=45944972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110444012.XA Active CN102420725B (en) | 2011-12-27 | 2011-12-27 | Method for detecting IP network bandwidth and apparatus thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102420725B (en) |
WO (1) | WO2013097745A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102420725B (en) * | 2011-12-27 | 2014-05-21 | 华为技术有限公司 | Method for detecting IP network bandwidth and apparatus thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001089176A2 (en) * | 2000-05-17 | 2001-11-22 | America Online, Inc. | Selecting content to be communicated based on automatic detection of communication bandwidth |
CN101247291A (en) * | 2008-03-10 | 2008-08-20 | 建汉科技股份有限公司 | Method for detecting network band width of network appliance |
CN101667890A (en) * | 2009-09-24 | 2010-03-10 | 深圳市普联技术有限公司 | Network bandwidth detecting method and system |
CN101706827A (en) * | 2009-08-28 | 2010-05-12 | 四川虹微技术有限公司 | Method for caching file of embedded browser |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070260910A1 (en) * | 2006-04-04 | 2007-11-08 | Vinit Jain | Method and apparatus for propagating physical device link status to virtual devices |
CN101707776B (en) * | 2009-11-13 | 2013-06-19 | 高汉中 | Centrally controlled time division multiplexing wireless communication micro base station network |
CN102420725B (en) * | 2011-12-27 | 2014-05-21 | 华为技术有限公司 | Method for detecting IP network bandwidth and apparatus thereof |
-
2011
- 2011-12-27 CN CN201110444012.XA patent/CN102420725B/en active Active
-
2012
- 2012-12-27 WO PCT/CN2012/087678 patent/WO2013097745A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001089176A2 (en) * | 2000-05-17 | 2001-11-22 | America Online, Inc. | Selecting content to be communicated based on automatic detection of communication bandwidth |
CN101247291A (en) * | 2008-03-10 | 2008-08-20 | 建汉科技股份有限公司 | Method for detecting network band width of network appliance |
CN101706827A (en) * | 2009-08-28 | 2010-05-12 | 四川虹微技术有限公司 | Method for caching file of embedded browser |
CN101667890A (en) * | 2009-09-24 | 2010-03-10 | 深圳市普联技术有限公司 | Network bandwidth detecting method and system |
Also Published As
Publication number | Publication date |
---|---|
CN102420725A (en) | 2012-04-18 |
WO2013097745A1 (en) | 2013-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8737243B2 (en) | Methods and apparatus for monitoring network link quality | |
KR101573447B1 (en) | Adaptive peer discovery based on non peer discovery transmissions and device density for wifi | |
CN103380641B (en) | Method and apparatus for reducing the time that multiple PDN contexts are transmitted during the access technology between wireless switches | |
CN103581242A (en) | Method, client-side equipment, server and system for uploading files | |
CN102624874A (en) | Method and system for transmitting voice messages | |
CN102917127B (en) | Audio transmission method and system | |
CN102571820A (en) | Method used for transmitting data, compression server and terminal | |
CN104113870A (en) | Network testing method and mobile terminal | |
EP3266259B1 (en) | Enable access point availability prediction | |
CN104009878A (en) | Method and apparatus for measuring network transmission delay | |
CN102420725B (en) | Method for detecting IP network bandwidth and apparatus thereof | |
CN109996263B (en) | Method for NB-IoT module to dock equipment management platform based on LwM2M protocol | |
CN103190170B (en) | The processing method of a kind of subscriber equipment, the processing method of Mobility Management Entity, subscriber equipment, Mobility Management Entity and communication system | |
CN107995595A (en) | A kind of method for realizing NB-IoT multicast coverage enhancements | |
CN103797836A (en) | Scheduling method and base station | |
CN103621132A (en) | Network monitoring method and device | |
CN104244334B (en) | A kind of method and apparatus for determining network service quality | |
CN106792895A (en) | A kind of method and apparatus for determining data package size | |
CN103237314A (en) | Method and device for evaluating service quality | |
EP3536062B1 (en) | Methods, wireless communication device and location node for managing a location request | |
WO2018148964A1 (en) | Network capacity adjustment method, and network apparatus | |
CN104703214A (en) | Positioning monitoring method and device | |
CN103096427A (en) | Wireless access point (AP) information of terminal acquiring method and device | |
US10172041B2 (en) | Facilitation of mobile device resource optimization | |
WO2017049575A1 (en) | Method and device for interoperation between networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |