WO2013097745A1 - 检测ip网络带宽的方法和装置 - Google Patents

检测ip网络带宽的方法和装置 Download PDF

Info

Publication number
WO2013097745A1
WO2013097745A1 PCT/CN2012/087678 CN2012087678W WO2013097745A1 WO 2013097745 A1 WO2013097745 A1 WO 2013097745A1 CN 2012087678 W CN2012087678 W CN 2012087678W WO 2013097745 A1 WO2013097745 A1 WO 2013097745A1
Authority
WO
WIPO (PCT)
Prior art keywords
base station
small base
file
data
memory
Prior art date
Application number
PCT/CN2012/087678
Other languages
English (en)
French (fr)
Inventor
罗璟真
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013097745A1 publication Critical patent/WO2013097745A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the small base station is a form of base station different from the macro base station, and the small base station is one order of magnitude smaller than the macro base station in terms of transmission power, number of users, and volumetric weight.
  • the small base station can be divided into a micro base station Micro, a pico base station Pico/ePico, a home base station Femto, a wireless access point AP, etc. Different types of small base stations have different transmission power, number of users, and network architecture.
  • the small base station can be a UAP (UMTS Access Point, UMTS Access Point), which is a brand new UMTS wireless access point product that provides standards to users.
  • UAP UMTS Access Point, UMTS Access Point
  • the UMTS service can provide operators with a low-cost indoor coverage solution.
  • UAP can effectively improve network coverage and capacity as an effective carrier of mobile broadband.
  • a small base station such as a UAP is generally connected to a mobile core network through an IP (Internet Protocol) network, and serves as an indoor equipment (user equipment) access point.
  • IP Internet Protocol
  • IP network bandwidth is used. Whether it has sufficient direct impact To the user experience.
  • FTP File Transfer Protocol
  • the FTP bandwidth detection method is generally used to detect the bandwidth, that is, using FTP to upload and download files to detect bandwidth. This method can not detect the bandwidth duration when used, uploading or The downloaded file should not be too small. Otherwise, the detection result is not accurate enough.
  • Embodiments of the present invention provide a method and apparatus for detecting an IP network bandwidth, which can detect an IP network bandwidth without occupying excessive storage space.
  • An aspect of the present invention provides a method for detecting an IP network bandwidth, the method comprising: a small base station downloading file data from a server, the small base station being connected to the server via an IP network;
  • the small base station uses the virtual file system to store the received data into a buffer area of the memory, and records the length of the accumulated downloaded data;
  • the small base station After the file download is completed, the small base station records and downloads the total consumption time of the file, and calculates the downlink bandwidth of the IP network according to the total length of the file and the total consumption time.
  • Another aspect of the present invention provides a method for detecting an IP network bandwidth, the method comprising: a small base station specifying a virtual file file name, file length information, and transmitting the information to a server, where the small base station is connected to the server via an IP network Server The small base station constructs a file data block by using a virtual file system and uploads the data block to the server;
  • the small base station After receiving the confirmation message replied by the server, the small base station continues to perform the previous step; after the total length of the uploaded data block reaches the file length specified by the small base station, the small base station stops building the data block, and records the uploaded data block.
  • the total consumption time, the IP network uplink bandwidth is calculated using the specified file length and the total consumption time.
  • Another aspect of the present invention provides a small base station for detecting an IP network bandwidth, the small base station comprising:
  • Receiver used to download file data from the server
  • Memory used to buffer data downloaded by the receiver, and release the storage space after the storage space is full;
  • a processor configured to record a data length of the cumulative download of the receiver, and control the memory to release the storage space after the memory storage space is full, and the processor is further configured to record and download the total consumption of the file after the file download is completed. Time, calculating an IP network downlink bandwidth according to the total length of the file and the total consumption time.
  • a further aspect of the present invention provides a small base station for detecting an IP network bandwidth, the small base station comprising:
  • a transmitter configured to upload a virtual file name specified by the processor, a file length, and a data block constructed by the processor to a server;
  • a receiver configured to receive an acknowledgement message received by the server and received the data block
  • a processor configured to specify a virtual file name, a file length, and a build file data block, and a total length of the data block uploaded by the sender After the specified file length is reached, stopping building the data block and recording the total consumption time of uploading the data block, and calculating the IP network uplink bandwidth by using the specified file length and total consumption time;
  • Memory A block of data used to cache the processor.
  • the small base station utilizes the virtual file by applying the method and the small base station provided by the embodiment of the present invention.
  • the system stores or builds files, does not store the files in flash flash or other permanent storage, but stores them in a buffer area of memory, which saves storage space and saves reading and writing of memory such as Flash.
  • the time it takes to upload or download a file improves the bandwidth detection accuracy.
  • FIG. 1 is a flowchart of a method for detecting an IP network bandwidth according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for detecting an IP network bandwidth according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic diagram of a small base station for detecting an IP network bandwidth according to Embodiment 4 of the present invention.
  • Embodiment 1 of the present invention discloses a method for detecting an IP network bandwidth, which uses a small base station to download a file from a server to detect an IP network bandwidth.
  • VFS Virtual File System
  • the small base station downloads file data from the server, and the small base station is connected to the server via an IP network; the small base station uses the virtual file system to store the received data into a buffer area of the memory, and records the accumulated downloaded data length; After the buffer area is full, the buffer area is released; the small base station cyclically performs the above three steps until the file download is completed, and the small base station records the total consumption time of downloading the file, according to the total length of the file. And calculating the IP network bandwidth with the total consumption time.
  • FIG. 1 it is a flowchart of a method for detecting an IP network bandwidth by using a small base station to download a file according to Embodiment 1 of the present invention, and the specific process is as follows:
  • Step 101 The small base station downloads file data from a server, and the small base station is connected to the server via an IP network.
  • Step 102 The small base station uses the virtual file system to store the received data into a buffer area of the memory, and records the accumulated data length.
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • the buffer area is a segment of the memory area of the small base station, and the size thereof can be flexibly set according to factors such as the memory size of the small base station, for example, 64 KB, 128 KB, and the like.
  • the small base station receives the file, it does not store the entire file, but uses the virtual file system to save the file into the buffer area.
  • Step 103 After the buffer area is full, the small base station releases the buffer area, and returns to step 101. Steps 101 to 103 are executed cyclically until the file download is completed. At this time, the accumulated data length recorded by the small base station is the total length of the file. After the file download is completed, the small base station performs step 104.
  • Step 104 The small base station records the total consumption time of the downloaded file, and calculates the downlink bandwidth of the IP network according to the total length of the file and the total consumption time.
  • the small base station when the small base station downloads the file from the server, the entire file is not saved, but the downloaded data is stored in the memory buffer area by using the virtual file system, and the downloaded data length is recorded, and the buffer area is full. After the buffer area continues to receive the next data segment, the small base station repeatedly uses the same memory area, and does not occupy excessive memory or Flash resources, thereby effectively saving the storage resources of the small base station.
  • Embodiment 2 of the present invention discloses a method for detecting bandwidth of an IP network, which utilizes a small base station. Transfer files to detect IP network bandwidth.
  • the small base station specifies a virtual file file name, file length information, and transmits the information to the server, the small base station is connected to the server via an IP network; the small base station constructs a file data block by using the virtual file system and uploads the data block After receiving the confirmation message replied by the server, the small base station continues to perform the previous step until the total length of the uploaded data block reaches the file length specified by the small base station; the small base station records the total consumption time of the uploaded data block, The IP network bandwidth is calculated using the specified file length and the total consumption time.
  • FIG. 2 it is a flowchart of a method for detecting an IP network bandwidth by using a small base station to upload a file according to Embodiment 2 of the present invention, and the specific process is as follows:
  • Step 201 The small base station specifies information such as a virtual file file name, a file length, and the like, and the small base station is connected to the server via an IP network.
  • the small base station when specifying the virtual file length, the small base station needs to comprehensively consider the time of detecting the network bandwidth consumption and the accuracy of the detection result.
  • the longer the file length the more accurate the obtained detection result is, but the longer the time is consumed. Therefore, it is necessary to comprehensively consider these two factors to set an appropriate file length, and the file length can also be set by the network administrator.
  • Step 202 The small base station sends information such as a virtual file name and a file length to the server.
  • Step 203 The small base station constructs a file data block by using a virtual file system and uploads the data block to the server.
  • the size of the data block can be flexibly set according to the size of the memory of the small base station itself, for example, 64 KB, 128 KB, and the like.
  • the small base station When the small base station uploads a data block, it can use the TCP protocol or the UDP protocol.
  • Step 204 After receiving the data block, the server returns a confirmation message to the small base station.
  • Step 205 After receiving the confirmation message replied by the server, the small base station returns to step 203. Steps 203 to 205 are performed cyclically until the total length of the data block uploaded by the small base station reaches the file length specified by the small base station, and the small base station stops building the data block to perform step 206. Step 206: The small base station records a total consumption time of the uploaded data block, and calculates the IP network uplink bandwidth by using the specified file length and total consumption time.
  • the small base station specifies the virtual file name and the file length, and then uses the virtual file system to create a data block, uploads the data segment to the server, and stops constructing the data block until the specified file length is reached, and the small base station uses the uploaded data.
  • the total bandwidth consumption of the block and the specified file length calculate the network bandwidth. In this way, the small base station does not perform integrity check on the constructed file, and does not store the file data block into Flash or other permanent storage, and only utilizes a section of the memory, thereby effectively saving the small base station storage resource.
  • the server may be an FTP server or another type of server.
  • the small base station can upload a file of a suitable size to the core network or download from the core network, The network bandwidth is calculated based on the file size and the time the file was transferred.
  • the transport layer uses the UDP protocol to transmit data with better real-time performance, which can improve the detection accuracy.
  • Embodiment 1 and Embodiment 2 can also be used to detect the bandwidth of the network between two small base stations, in which case one small base station needs to serve as a server and another small base station serves as a client.
  • the third embodiment of the present invention provides a small base station for detecting the bandwidth of an IP network.
  • the small base station includes a receiver 301, a memory 302, and a processor 303, where:
  • Receiver 301 Used to download file data from a server.
  • Memory 302 Used to buffer the data downloaded by the receiver and release the storage space when the storage space is full.
  • the processor 303 is configured to record a data length of the cumulative download of the receiver, and control the memory to release the storage space after the memory storage space is full, and the processor is further configured to record the total time of downloading the file after the file download is completed, according to the total file size.
  • the length and total consumption time are calculated for the IP network downlink bandwidth.
  • the memory 302 in this embodiment may be a section of the memory of the small base station.
  • the small base station provided in the third embodiment does not store the entire file in the flash memory or other permanent memory when downloading the file from the server, but caches an area in the memory, that is, the buffer area, and discards when the buffer area is full.
  • the saved data only the length of the data is recorded.
  • the network bandwidth is calculated by using the total time of the downloaded file and the total length of the file. By detecting the network bandwidth by the small base station in this embodiment, only a buffer area of the memory is used, which effectively saves the storage space.
  • the fourth embodiment of the present invention provides a small base station for detecting the bandwidth of an IP network.
  • the small base station includes a transmitter 401, a receiver 402, a processor 403, and a memory 404, where:
  • Transmitter 401 Used to upload the virtual file name, file length and other information specified by the processor and the data block constructed by the processor to the server.
  • Receiver 402 acknowledgment message for receiving the data block received by the server.
  • the processor 403 is configured to: specify a virtual file name, a file length, and the like, and construct a file data block. After the total length of the data block uploaded by the sender reaches a specified file length, stop building the data block and record the total consumption time of the uploaded data block. , Calculate the IP network uplink bandwidth with the specified file length and total consumption time.
  • Memory 404 A block of data used to cache processor builds.
  • the memory 404 may be a segment of the memory of the small base station, and the data block constructed by the processor is cached in the memory and then uploaded to the server.
  • the data block data constructed by the processor 403 may be random data.
  • the small base station provided in Embodiment 4 uploads a file to the server, instead of uploading the file already stored in the flash flash or other persistent storage, the file data block is repeatedly constructed and uploaded to the server until the specified file length is reached, and finally Calculate network bandwidth with the specified file length and total elapsed time.
  • the network bandwidth By detecting the network bandwidth by the small base station in this embodiment, only a section of the memory is used, and the storage space of the small base station can be effectively saved.
  • the memory in all embodiments of the present invention generally refers to a random access memory.
  • RAM random access memory
  • the small base station uses the virtual file system to store or build files, does not store the files in Flash or other permanent storage, but stores them in a section of the memory, thereby effectively saving storage. Space, at the same time, avoids the reading and writing of memory such as Flash, saves the time of uploading or downloading files, and improves the bandwidth detection accuracy.

Abstract

本发明实施例提供了一种检测 IP网络带宽的方法和装置,能够检测 IP网络带宽,又不会占用过多的存储空间。小基站从服务器下载文件数据,所述小基站经由 IP网络连接到所述服务器;所述小基站利用虚拟文件系统将接收到的数据存储到内存的缓存区,并记录累计下载的数据长度;所述小基站在缓存区满后,释放所述缓存区;所述小基站在所述文件下载完成后,记录下载所述文件总计消耗时间,根据所述文件总长度和所述总计消耗时间计算所述 IP网络下行链路带宽。本发明实施例提供的技术方案能够在检测 IP网络带宽时有效地节约小基站存储空间。

Description

检测 IP网络带宽的方法和装置 本申请要求于 2011 年 12 月 27 日提交中国专利局、 申请号为 201110444012.X、发明名称为"检测 IP网络带宽的方法和装置"的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及通信技术领域, 尤其涉及一种检测 IP网络带宽的方法和 装置。 背景技术 近年来移动通信数据业务的激增给宏网络带来了很大压力, 传统宏 基站网络已经难以满足人们对无线宽带覆盖, 尤其是室内宽带覆盖的诉 求, 部署小基站是解决这一问题的一个很好的方案。 小基站是一种区别 于宏基站的基站形态, 小基站在发射功率、 用户数、 体积重量等方面都 比宏基站小一个数量级。 小基站具体可分为微基站 Micro、 微微基站 Pico/ePico, 家庭基站 Femto、 无线接入点 AP等, 不同类型的小基站在 发射功率、 用户数、 网络架构上各不相同。
例如在 UMTS ( Universal Mobile Telecommunications System, 通用移 动通讯系统) 中, 小基站可以是 UAP ( UMTS Access Point, UMTS接入 点), UAP是一种全新的 UMTS无线接入点产品, 它向用户提供标准的 UMTS服务, 能够为运营商提供一种低成本室内覆盖解决方案, 尤其是 当前数据业务激增的情况下, UAP作为移动宽带的有效载体能够有效提 高网络覆盖和容量。
UAP等小基站一般通过 IP ( Internet Protocol, 因特网协议) 网络接 入到移动核心网, 作为室内 UE ( User equipment, 用户终端 )接入点, UAP等小基站传输数据时使用 IP传输, IP网络带宽是否充裕直接影响 到用户体验。 小基站在使用时, 需要使用一些方法或工具检测 IP网络传 输带宽。 现有技术中检测带宽时通常使用 FTP ( File Transfer Protocol, 文 件传输协议) 带宽检测方法, 即使用 FTP上传、 下载文件检测带宽, 这 种方法在使用时检测带宽持续的时间不能太短, 上传或下载的文件不能 太小, 否则检测结果不够准确, 但文件太大将会占用系统太多的存储资 源, 造成很大的浪费, 尤其对于小基站, 设备本身的内存或闪存 Flash 存储器非常有限和宝贵, 通过 FTP上传或下载文件检测带宽会占用过多 存储资源, 并且由于存储空间难以存储足够大的文件导致检测结果不准 确。
发明内容 本发明实施例提供了一种检测 IP网络带宽的方法和装置,能够检测 IP网络带宽, 又不会占用过多的存储空间。
本发明一方面提供了一种检测 IP网络带宽的方法, 该方法包括: 小基站从服务器下载文件数据,所述小基站经由 IP网络连接到所述 服务器;
所述小基站利用虚拟文件系统将接收到的数据存储到内存的緩存 区, 并记录累计下载的数据长度;
所述小基站在緩存区满后, 释放所述緩存区;
所述小基站在所述文件下载完成后, 记录下载所述文件总计消耗时 间,根据所述文件总长度和所述总计消耗时间计算所述 IP网络下行链路 带宽。
本发明另一方面提供了一种检测 IP网络带宽的方法, 该方法包括: 小基站指定虚拟文件文件名、 文件长度信息并将所述信息发送给服 务器, 所述小基站经由 IP网络连接到所述服务器; 所述小基站利用虚拟文件系统构建文件数据块并将所述数据块上传 给所述服务器;
所述小基站收到服务器回复的确认消息后, 继续执行上一步骤; 所述小基站在上传的数据块总长度达到所述小基站指定的文件长度 后, 停止构建数据块, 记录上传数据块的总计消耗时间, 利用所述指定 的文件长度和所述总计消耗时间计算所述 IP网络上行链路带宽。
本发明又一方面提供了一种检测 IP网络带宽的小基站,所述小基站 包括:
接收器: 用于从服务器下载文件数据;
存储器: 用于緩存所述接收器下载的数据, 在存储空间满后释放存 储空间;
处理器: 用于记录所述接收器累计下载的数据长度, 并在存储器存 储空间满后控制所述存储器释放存储空间, 所述处理器还用于在文件下 载完成后记录下载所述文件总计消耗时间, 根据所述文件总长度和所述 总计消耗时间计算 IP网络下行链路带宽。
本发明再一方面提供了一种检测 IP网络带宽的小基站,所述小基站 包括:
发送器: 用于将所述处理器指定的虚拟文件名、 文件长度和所述处 理器构建的数据块上传到服务器;
接收器:用于接收所述服务器回复的接收到所述数据块的确认消息; 处理器: 用于指定虚拟文件名、 文件长度和构建文件数据块, 在所 述发送器上传的数据块总长度达到所述指定的文件长度后, 停止构建数 据块并记录上传所述数据块的总计消耗时间, 利用所述指定的文件长度 和总计消耗时间计算 IP网络上行链路带宽;
存储器: 用于緩存所述处理器构建的数据块。
通过应用本发明实施例提供的方法和小基站, 小基站利用虚拟文件 系统存储或构建文件, 不将文件存储在闪存 Flash或其它永久性存储器, 而是存储在内存的一段緩存区, 有效地节省了存储空间, 同时由于避免 了对 Flash等存储器的读写, 节约了上传或下载文件使用的时间, 提高 了带宽检测精度。
附图说明 图 1为本发明实施例一提供的一种检测 IP网络带宽的方法流程图; 图 2为本发明实施例二提供的一种检测 IP网络带宽的方法流程图; 图 3 为本发明实施例三提供的一种检测 IP 网络带宽的小基站示意 图;
图 4 为本发明实施例四提供的一种检测 IP 网络带宽的小基站示意 图。
具体实施方式 为使本发明的目的、 技术方案以及优点表达得更清楚明白, 下面结 合具体实施例和附图详细说明本发明提供的技术方案。
本发明实施例一公开了一种检测 IP网络带宽的方法,利用小基站从 服务器下载文件检测 IP网络带宽。在下载文件时,由于下载的文件较大, 小基站本身的内存和 Flash存储器空间有限, 小基站釆用虚拟文件系统 VFS ( Virtual File System) 节省存储空间, 不保存整个文件内容, 只保存 文件大小、 文件名等信息。 小基站从服务器下载文件数据, 所述小基站 经由 IP网络连接到所述服务器; 小基站利用虚拟文件系统将接收到的数 据存储到内存的緩存区, 并记录累计下载的数据长度; 小基站在緩存区 满后, 释放所述緩存区; 小基站循环执行以上三个步骤直到所述文件下 载完成, 小基站记录下载所述文件总计消耗时间, 根据所述文件总长度 和所述总计消耗时间计算所述 IP网络带宽。
如图 1所示, 为本发明实施例一提供的利用小基站下载文件检测 IP 网络带宽的方法流程图, 具体流程如下:
步骤 101、 小基站从服务器下载文件数据, 所述小基站经由 IP网络 连接到所述服务器。
步骤 102、 小基站利用虚拟文件系统将接收到的数据存储到内存的 緩存区, 并记录累计下载的数据长度。
小基站从服务器下载数据时, 可以使用 TCP (Transmission Control Protocol , 传输控制协议)协议或 UDP (User Datagram Protocol, 用户 数据报协议) 协议。
本发明实施例中, 緩存区是小基站的一段内存区域, 其大小可以根 据小基站的内存大小等因素灵活设定, 例如 64KB、 128KB等。 小基站 接收文件时, 并不将整个文件存储下来, 而是利用虚拟文件系统将文件 分块保存到緩存区。
步骤 103、 緩存区满后, 小基站释放所述緩存区, 回到步骤 101。 步骤 101至 103循环执行, 直到文件下载完成, 此时小基站记录的 累计下载的数据长度就是所述文件的总长度, 文件下载完成后, 小基站 执行步骤 104。
步骤 104、 小基站记录下载文件总计消耗时间, 根据文件总长度和 总计消耗时间计算所述 IP网络下行链路带宽。
本发明实施例一中, 小基站从服务器下载文件时, 并不将整个文件 保存下来, 而是利用虚拟文件系统将下载到的数据存储到内存緩存区, 同时记录下载的数据长度, 緩存区满后就緩存区, 继续接收下一个数据 段, 小基站反复利用同一段内存区域, 不会占用过多的内存或 Flash 资 源, 有效节省了小基站的存储资源。
本发明实施例二公开了一种检测 IP网络带宽的方法,利用小基站上 传文件检测 IP网络带宽。 小基站指定虚拟文件文件名、 文件长度信息并 将所述信息发送给服务器, 所述小基站经由 IP网络连接到所述服务器; 小基站利用虚拟文件系统构建文件数据块并将所述数据块上传给所述服 务器; 小基站收到服务器回复的确认消息后, 继续执行上一步骤, 直到 上传的数据块总长度达到所述小基站指定的文件长度; 小基站记录上传 数据块的总计消耗时间, 利用所述指定的文件长度和所述总计消耗时间 计算所述 IP网络带宽。
如图 2所示, 为本发明实施例二提供的利用小基站上传文件检测 IP 网络带宽的方法流程图, 具体流程如下:
步骤 201、 小基站指定虚拟文件文件名、 文件长度等信息, 所述小 基站经由 IP网络连接到服务器。
本发明实施例中, 小基站在指定虚拟文件长度时, 需要综合考虑检 测网络带宽消耗的时间和检测结果的准确度, 文件长度越长, 得到的检 测结果越准确但消耗的时间也越长, 因此需要综合考虑这两个因素设置 合适的文件长度, 文件长度也可以由网管人员设定。
步骤 202、 小基站将虚拟文件名、 文件长度等信息发送给服务器。 步骤 203、 小基站利用虚拟文件系统构建文件数据块并将所述数据 块上传给服务器。
本实施例中, 数据块的大小可以根据小基站本身内存的大小灵活设 定, 例如 64KB , 128KB等。 小基站在利用虚拟文件系统构建数据块时, 由于数据内容并不需要校验, 构建数据块时可以使用随机数据。
小基站上传数据块时, 可以使用 TCP协议或 UDP协议。
步骤 204、 服务器收到所述数据块后, 向小基站回复确认消息。 步骤 205、 小基站收到服务器回复的确认消息后, 回到步骤 203。 步骤 203至 205循环进行, 直到小基站上传的数据块总长度达到小 基站指定的文件长度, 小基站停止构建数据块执行步骤 206。 步骤 206、 小基站记录上传数据块的总计消耗时间, 利用所述指定 的文件长度和总计消耗时间计算所述 IP网络上行链路带宽。
本发明实施例二中, 小基站指定虚拟文件名和文件长度, 然后利用 虚拟文件系统创建数据块, 将数据段上传到服务器, 直到达到指定的文 件长度后, 停止构建数据块, 小基站利用上传数据块的总计消耗时间和 指定的文件长度计算网络带宽。 通过这种方式, 小基站不对构建的文件 进行完整性检验, 也不将文件数据块存储到 Flash或其它永久性存储器, 仅利用内存的一段区域, 有效节约了小基站存储资源。
需要说明的是, 本发明实施例一和实施例二中, 服务器可以是 FTP 服务器, 也可以是其它类型服务器, 只要小基站能将合适大小的文件上 传到核心网或从核心网下载, 就可以根据文件大小和传输文件的时间计 算出网络带宽。 实施例一和实施例二中,传输层使用 UDP协议传输数据 时有更好的实时性, 可以提高检测精度。
实施例一和实施例二中的检测带宽的方法还可以用于检测两个小基 站之间网络的带宽, 此时一个小基站需要作为服务器, 另一个小基站作 为客户端。
本发明实施例三提供了一种检测 IP网络带宽的小基站,如图 3所示, 所述小基站包括接收器 301、 存储器 302和处理器 303 , 其中:
接收器 301 : 用于从服务器下载文件数据。
存储器 302: 用于緩存接收器下载的数据, 在存储空间满后释放存 储空间。
处理器 303 : 用于记录接收器累计下载的数据长度, 并在存储器存 储空间满后控制所述存储器释放存储空间, 处理器还用于在文件下载完 成后记录下载文件总计消耗时间, 根据文件总长度和总计消耗时间计算 IP网络下行链路带宽。
本实施例中存储器 302可以是小基站内存的一段区域。 实施例三提供的小基站在从服务器下载文件时, 并不是将整个文件 存储在闪存 Flash或其它永久性存储器, 而是緩存在内存的一段区域, 即緩存区, 当緩存区满后就丟弃保存的数据, 只记录下数据长度, 当整 个文件下载完成后, 利用下载文件总计消耗时间和文件总长度计算网络 带宽。 通过该实施例中的小基站检测网络带宽, 只使用内存的一段緩存 区, 有效地节约了存储空间。
本发明实施例四提供了一种检测 IP网络带宽的小基站,如图 4所示, 所述小基站包括发送器 401、 接收器 402、 处理器 403和存储器 404 , 其 中:
发送器 401 : 用于将处理器指定的虚拟文件名、 文件长度等信息和 处理器构建的数据块上传到服务器。
接收器 402: 用于接收服务器回复的接收到所述数据块的确认消息。 处理器 403 : 用于指定虚拟文件名、 文件长度等信息和构建文件数 据块, 在发送器上传的数据块总长度达到指定的文件长度后, 停止构建 数据块并记录上传数据块的总计消耗时间, 利用指定的文件长度和总计 消耗时间计算 IP网络上行链路带宽。
存储器 404: 用于緩存处理器构建的数据块。
本实施例中, 存储器 404可以是小基站内存的一段区域, 处理器构 建的数据块緩存在存储器, 然后上传到服务器。
处理器 403构建的数据块数据可以是随机数据。
实施例四提供的小基站在向服务器上传文件时, 不是上传已经存储 在闪存 Flash或其它永久性存储器中的文件, 而是反复构建文件数据块 并上传给服务器, 直到达到指定的文件长度, 最终利用指定的文件长度 和总计消耗时间计算网络带宽。通过该实施例中的小基站检测网络带宽, 仅使用内存的一段区域, 能够有效的节省小基站的存储空间。
需要说明的是, 本发明所有实施例中的内存通常是指随机存储器 RAM。 通过应用本发明实施例提供的方法和小基站, 小基站利用虚拟文 件系统存储或构建文件, 不将文件存储在 Flash或其它永久性存储器, 而是存储在内存的一段区域, 有效地节省了存储空间, 同时由于避免了 对 Flash等存储器的读写, 节约了上传或下载文件使用的时间, 提高了 带宽检测精度。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到 本发明可借助软件加必需的硬件平台的方式来实现, 当然也可以全部通 过硬件来实施。 基于这样的理解, 本发明的技术方案对背景技术做出贡 献的全部或者部分可以以软件产品的形式体现出来, 该计算机软件产品 可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令 用以使得一台计算机设备, 可以是个人计算机, 服务器, 或者网络设备 等, 执行本发明各个实施例或者实施例的某些部分所述的方法。
以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参 照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员应当 理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对 其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims

权利要求
1、 一种检测 IP网络带宽的方法, 其特征在于, 包括:
小基站从服务器下载文件数据,所述小基站经由 IP网络连接到所述 服务器;
所述小基站利用虚拟文件系统将接收到的数据存储到内存的緩存 区, 并记录累计下载的数据长度;
所述小基站在緩存区满后, 释放所述緩存区;
所述小基站在所述文件下载完成后, 记录下载所述文件总计消耗时 间,根据所述文件总长度和所述总计消耗时间计算所述 IP网络下行链路 带宽。
2、 如权利要求 1所述的方法, 其特征在于, 所述小基站从服务器下 载文件数据时, 使用传输控制协议 TCP协议或者用户数据报协议 UDP 协议。
3、 如权利要求 2所述的方法, 其特征在于, 所述緩存区大小根据所 述小基站内存大小设定。
4、 一种检测 IP网络带宽的方法, 其特征在于, 包括:
小基站指定虚拟文件文件名、 文件长度信息并将所述信息发送给服 务器, 所述小基站经由 IP网络连接到所述服务器;
所述小基站利用虚拟文件系统构建文件数据块并将所述数据块上传 给所述服务器;
所述小基站收到服务器回复的确认消息后, 继续执行上一步骤; 所述小基站在上传的数据块总长度达到所述小基站指定的文件长度 后, 停止构建数据块, 记录上传数据块的总计消耗时间, 利用所述指定 的文件长度和所述总计消耗时间计算所述 IP网络上行链路带宽。
5、 如权利要求 4所述的方法, 其特征在于, 所述数据块大小根据所 述小基站内存大小设定。
6、 如权利要求 5所述的方法, 其特征在于, 所述数据块数据为随机 数据。
7、 如权利要求 4至 6任一所述的方法, 其特征在于, 所述小基站上 传数据块时, 使用传输控制协议 TCP协议或者用户数据报协议 UDP协 议。
8、 一种检测 IP网络带宽的小基站, 其特征在于, 包括接收器、 存 储器和处理器, 其中:
所述接收器: 用于从服务器下载文件数据;
所述存储器: 用于緩存所述接收器下载的数据, 在存储空间满后释 放存储空间;
所述处理器: 用于记录所述接收器累计下载的数据长度, 并在存储 器存储空间满后控制所述存储器释放存储空间, 所述处理器还用于在文 件下载完成后记录下载所述文件总计消耗时间, 根据所述文件总长度和 所述总计消耗时间计算 IP网络下行链路带宽。
9、 如权利要求 8所述的小基站, 其特征在于, 所述存储器为所述小 基站内存的一段区域。
10、 一种检测 IP网络带宽的小基站, 其特征在于, 包括发送器、 接 收器、 处理器和存储器, 其中:
所述发送器: 用于将所述处理器指定的虚拟文件名、 文件长度和所 述处理器构建的数据块上传到服务器;
所述接收器: 用于接收所述服务器回复的接收到所述数据块的确认 消息;
所述处理器: 用于指定虚拟文件名、 文件长度和构建文件数据块, 在所述发送器上传的数据块总长度达到所述指定的文件长度后, 停止构 建数据块并记录上传所述数据块的总计消耗时间, 利用所述指定的文件 长度和总计消耗时间计算 IP网络上行链路带宽;
所述存储器: 用于緩存所述处理器构建的数据块。
11、 如权利要求 10所述的小基站, 其特征在于, 所述存储器为小基 站内存的一段区域。
12、 如权利要求 10或 11任一所述的小基站, 其特征在于, 所述数 据块数据为随机数据。
PCT/CN2012/087678 2011-12-27 2012-12-27 检测ip网络带宽的方法和装置 WO2013097745A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110444012.XA CN102420725B (zh) 2011-12-27 2011-12-27 检测ip网络带宽的方法和装置
CN201110444012.X 2011-12-27

Publications (1)

Publication Number Publication Date
WO2013097745A1 true WO2013097745A1 (zh) 2013-07-04

Family

ID=45944972

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087678 WO2013097745A1 (zh) 2011-12-27 2012-12-27 检测ip网络带宽的方法和装置

Country Status (2)

Country Link
CN (1) CN102420725B (zh)
WO (1) WO2013097745A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420725B (zh) * 2011-12-27 2014-05-21 华为技术有限公司 检测ip网络带宽的方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051945A (zh) * 2006-04-04 2007-10-10 国际商业机器公司 用于管理逻辑分区数据处理系统中的适配器的方法和系统
CN101707776A (zh) * 2009-11-13 2010-05-12 高汉中 中心控制时分复用无线通信微基站网络
CN102420725A (zh) * 2011-12-27 2012-04-18 华为技术有限公司 检测ip网络带宽的方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010044835A1 (en) * 2000-05-17 2001-11-22 Schober Joseph Frank Selecting content to be communicated based on automatic detection of communication bandwidth
CN101247291A (zh) * 2008-03-10 2008-08-20 建汉科技股份有限公司 网络设备的网络带宽检测方法
CN101706827B (zh) * 2009-08-28 2011-09-21 四川虹微技术有限公司 一种嵌入式浏览器文件缓存方法
CN101667890A (zh) * 2009-09-24 2010-03-10 深圳市普联技术有限公司 一种网络带宽的检测方法和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051945A (zh) * 2006-04-04 2007-10-10 国际商业机器公司 用于管理逻辑分区数据处理系统中的适配器的方法和系统
CN101707776A (zh) * 2009-11-13 2010-05-12 高汉中 中心控制时分复用无线通信微基站网络
CN102420725A (zh) * 2011-12-27 2012-04-18 华为技术有限公司 检测ip网络带宽的方法和装置

Also Published As

Publication number Publication date
CN102420725B (zh) 2014-05-21
CN102420725A (zh) 2012-04-18

Similar Documents

Publication Publication Date Title
KR101677476B1 (ko) 서비스 제공 시스템 및 방법, 및 모바일 에지 애플리케이션 서버 및 지원 노드
WO2017152722A1 (zh) 数据传输方法、装置及系统
CN101917742B (zh) 数据传输方法、设备及系统
WO2018170626A1 (zh) 一种连接恢复方法、接入和移动性管理功能实体及用户设备
WO2013010498A1 (zh) 业务编码速率调整方法及通信节点
US9160645B2 (en) Methods and systems for network performance measurement using verifiable single-use highly-entropic file generation
Anderlind et al. A traffic model for non-real-time data users in a wireless radio network
KR20140068195A (ko) 네트워크 품질 추정, 접속 검출, 및 부하 관리를 위한 시스템들 및 방법들
WO2013083074A1 (zh) 通信监听方法、基站和终端
KR101981285B1 (ko) 컨텐츠 식별 정보를 이용한 컨텐츠 전송 서비스 시스템, 이를 위한 장치 및 그의 컨텐츠 전송 서비스 방법
Lumezanu et al. The effect of packet loss on redundancy elimination in cellular wireless networks
US20150245264A1 (en) Data Transmitting Method, Handover Method, Apparatus, Equipment, Access Node, and System
JP5837983B2 (ja) ネットワーク品質の推定、接続性の検出、および負荷の管理のためのシステムおよび方法
CN111866932A (zh) 一种网络测量方法、装置及电子设备
EP2875616A1 (en) Content optimization based on real time network dynamics
KR101556869B1 (ko) 네트워크 품질 추정, 접속 검출, 및 부하 관리를 위한 시스템들 및 방법들
Fezeu et al. An In-Depth measurement analysis of 5G mmwave PHY latency and its impact on end-to-end delay
US8520557B2 (en) Methods and apparatus for peer-to-peer non-simultaneous communication
WO2017008701A1 (zh) 数据传输方法、装置及用户设备
WO2017008697A1 (zh) 数据传输方法、装置、多通道路由方法及用户设备
WO2013097745A1 (zh) 检测ip网络带宽的方法和装置
CN103797836A (zh) 调度方法和基站
US11477638B2 (en) Securely conveying location and other information in advanced networks
CN105684494A (zh) 一种状态检测方法、装置及系统
WO2014085693A1 (en) Clientless method for quality of service measurements

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12863047

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12863047

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 12863047

Country of ref document: EP

Kind code of ref document: A1