Bandwidth testing method and device, storage medium
A technology of bandwidth testing and storage media, applied in the field of communication, can solve problems such as inability to test at any time, complicated bandwidth testing methods, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0018] An embodiment of the present invention provides a bandwidth testing method, figure 1 It is a flowchart of a bandwidth testing method according to an embodiment of the present invention, such as figure 1 shown, including the following steps:
[0019] Step S102: The sending end sends a service message and an OAM message, wherein the bandwidth of the OAM message is the maximum bandwidth of the service message;
[0020] Step S104: The sending end discards part of the OAM message, wherein the part of the OAM message is a part of the OAM message that exceeds the maximum bandwidth after the service message is added to the OAM message;
[0021] Step S106: The sending end obtains the total number of bits of the discarded part of the OAM message, and the time for sending the service message and the OAM message;
[0022] Step S108: The sending end determines the bandwidth occupied by the service message according to the total number of bits and the time.
[0023] Through the pr...
Embodiment 2
[0029] In this embodiment, a device for testing bandwidth is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated here. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
[0030] figure 2 is a structural block diagram of a bandwidth testing device according to an embodiment of the present invention, such as figure 2 As shown, the device includes:
[0031] The sending module 30 is used to send service messages and OAM messages, wherein the bandwidth of the OAM message is the maximum bandwidth of the service message;
[0032] A discarding module 32, configured to discard part of the OAM message, wherein th...
Embodiment 3
[0050] An embodiment of the present invention also provides a storage medium, the storage medium includes a stored program, wherein the above-mentioned program executes any one of the above-mentioned methods when running.
[0051] Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for performing the following steps:
[0052] S1, the sending end sends a service message and an OAM message, wherein the bandwidth of the OAM message is the maximum bandwidth of the service message;
[0053] S2. The sending end discards part of the OAM message, wherein the part of the OAM message is a part of the OAM message that exceeds the maximum bandwidth after the service message is added to the OAM message;
[0054] S3, the sending end obtains the total number of bits of the discarded part of the OAM message, and the time for sending the service message and the OAM message;
[0055] S4. The sending end determines the bandwidth occupied b...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


