CN103701626B - The preparation method of bandwidth information and the equipment for obtaining bandwidth information - Google Patents
The preparation method of bandwidth information and the equipment for obtaining bandwidth information Download PDFInfo
- Publication number
- CN103701626B CN103701626B CN201210369914.6A CN201210369914A CN103701626B CN 103701626 B CN103701626 B CN 103701626B CN 201210369914 A CN201210369914 A CN 201210369914A CN 103701626 B CN103701626 B CN 103701626B
- Authority
- CN
- China
- Prior art keywords
- icmp
- bandwidth
- equipment
- message
- address
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The equipment that embodiment of the present invention discloses a kind of preparation method of bandwidth information and obtains bandwidth information, method include:Originator device is to the n intermediate equipment transmission bandwidth request message between originator device and purpose end equipment, wherein, the destination address of the bandwidth request message is the IP address of n intermediate equipment, and the bandwidth request message also carries the IP address of purpose end equipment, and n is natural number;Originator device receives the bandwidth back message from n intermediate equipment, obtains n intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of the outgoing interface.By the above-mentioned means, the present invention can in real time, intuitively obtain the bandwidth information of intermediate equipment end to end, O&M efficiency is improved, and it is simple to operate.
Description
Technical field
The present invention relates to internet technique field, preparation method and acquisition band more particularly to a kind of bandwidth information
The equipment of wide information.
Background technology
In the prior art, device A plan newly increases a kind of business, and slave unit A to equipment B service traffics bandwidth needs
100M.Now, whether device A to equipment B remaining bandwidth has 100M, it is necessary to which real-time query device A is to network between equipment B
Remaining bandwidth.In addition, various horizontal flows and longitudinal flow in a network be present, network whether there is congestion risk, network dimension
Shield personnel are in regular maintenance, it is necessary to inquire about between any two ends(Premise route intercommunication between both ends)Real-time bandwidth information.
When a certain business has packet drop in network, the first step positioned first is:Whether investigation network has congestion, Er Qiexu
All forward-paths are investigated end to end.
For demand above, a kind of method is the bandwidth by webmaster node by node, by link query facility A to equipment B
Information;Another method is logging device, the bandwidth information by order line node by node, by link query facility A to equipment B.
The content of the invention
The equipment that embodiment of the present invention provides a kind of preparation method of bandwidth information and obtains bandwidth information, Neng Goushi
When, intuitively obtain bandwidth information in intermediate equipment end to end, improve O&M efficiency, and simple to operate.
First aspect, there is provided a kind of preparation method of bandwidth information, including:Originator device is to originator device and purpose
N intermediate equipment transmission bandwidth request message between end equipment, wherein, the destination address of the bandwidth request message is
The internet protocol IP address of n intermediate equipment, the bandwidth request message also carry the IP address of purpose end equipment, and n is
Natural number;Originator device receives the bandwidth back message from n intermediate equipment, obtains n intermediate equipment to purpose
The bandwidth information of the outgoing interface of end equipment and the outgoing interface.
The first of first aspect is achieved in that:The bandwidth request message is the Internet network Internet Control Message Protocol ICMP
Bandwidth request message, the IP address of the n intermediate equipment is in the IP heads of the ICMP bandwidth requests message, the mesh
End equipment IP address in the ICMP heads of the ICMP bandwidth requests message.
Second of first aspect is achieved in that:The first character section on the ICMP heads of the ICMP bandwidth requests message
Include the type of the ICMP bandwidth requests message, second byte on the ICMP heads of the ICMP bandwidth requests message includes
The code of the icmp packet, third and fourth byte on the ICMP heads of the ICMP bandwidth requests message is including described
The verification of icmp packet and, the 5th and the 6th byte on the ICMP heads of the ICMP bandwidth requests message includes the ICMP
The identifier of message, the 7th and the 8th byte on the ICMP heads of the ICMP bandwidth requests message include the icmp packet
Sequence number, the 9th to the 12nd byte on the ICMP heads of the ICMP bandwidth requests message include the purpose end equipment
IP address.
The third of first aspect is achieved in that:The type of the ICMP bandwidth requests message is 15, the ICMP bands
The code of wide request message is 0.
The 4th kind of first aspect is achieved in that:The bandwidth back message is ICMP bandwidth back messages.
The 5th kind of first aspect is achieved in that:The originator device is between originator device and purpose end equipment
N intermediate equipment transmission bandwidth request message before, including:The originator device is according to the IP address of purpose end equipment
The Internet packets survey meter ping request messages that internet protocol life span TTL is n are sent to purpose end equipment;The beginning
Inchoation equipment receives the TTL timeout packets from n intermediate equipment, obtains the IP address of n intermediate equipment.
Second aspect, there is provided a kind of preparation method of bandwidth information, including:Intermediate equipment is received from originator device
Bandwidth request message, wherein, the destination address of the bandwidth request message is the IP address of the intermediate equipment, and the bandwidth please
Message is asked also to carry the IP address of purpose end equipment;The intermediate equipment to the originator device transmission bandwidth back message,
Wherein, the bandwidth back message includes the intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth of the outgoing interface
Information, wherein, the outgoing interface is determined according to the IP address of the purpose end equipment.
The first of second aspect is achieved in that:The bandwidth request message is ICMP bandwidth request messages, in described
Between equipment IP address in the IP heads of the ICMP bandwidth requests message, the IP address of the purpose end equipment is described
In the ICMP heads of ICMP bandwidth request messages.
Second of second aspect is achieved in that:The bandwidth back message is ICMP bandwidth back messages.
The third of second aspect is achieved in that:The first character section on the ICMP heads of the ICMP bandwidth back message
Include the type of the ICMP bandwidth back message, second byte on the ICMP heads of the ICMP bandwidth back message includes
The code of the ICMP bandwidth back message, third and fourth byte packet on the ICMP heads of the ICMP bandwidth back message
Include verification and the 5th and the 6th word on the ICMP heads of the ICMP bandwidth back message of the ICMP bandwidth back message
Saving includes the identifier of the ICMP bandwidth back message, and the 7th and the 8th of the ICMP heads of the ICMP bandwidth back message the
Individual byte includes the sequence number of the ICMP bandwidth back message, the 8th of the ICMP heads of the ICMP bandwidth back message
After byte, every four bytes mark ID, described m-th of m-th of outgoing interface including the intermediate equipment respectively in order
The bandwidth information of outgoing interface input direction and outbound course, wherein, m is natural number.
The 4th kind of second aspect is achieved in that:The type of the ICMP bandwidth back message is 16, the ICMP bands
The code of wide back message is 0.
The third aspect, there is provided a kind of equipment for obtaining bandwidth information, the equipment include:First sending module and first connects
Receive module;First sending module is used for the n intermediate equipment transmission bandwidth between the equipment and purpose end equipment
Request message, wherein, the destination address of the bandwidth request message is the IP address of n intermediate equipment, the bandwidth request
Message also carries the IP address of purpose end equipment, and n is natural number;First receiving module is used in first sending module
To after the n intermediate equipment transmission bandwidth request message between the equipment and purpose end equipment, reception comes from n intermediate
The bandwidth back message of equipment, n intermediate equipment is obtained to the outgoing interface of purpose end equipment and the bandwidth letter of the outgoing interface
Breath.
The first of the third aspect is achieved in that:The bandwidth request message is the Internet network Internet Control Message Protocol ICMP
Bandwidth request message, the IP address of the n intermediate equipment is in the IP heads of the ICMP bandwidth requests message, the mesh
End equipment IP address in the ICMP heads of the ICMP bandwidth requests message.
Second of the third aspect is achieved in that:The first character section on the ICMP heads of the ICMP bandwidth requests message
Include the type of the ICMP bandwidth requests message, second byte on the ICMP heads of the ICMP bandwidth requests message includes
The code of the icmp packet, third and fourth byte on the ICMP heads of the ICMP bandwidth requests message is including described
The verification of icmp packet and, the 5th and the 6th byte on the ICMP heads of the ICMP bandwidth requests message includes the ICMP
The identifier of message, the 7th and the 8th byte on the ICMP heads of the ICMP bandwidth requests message include the icmp packet
Sequence number, the 9th to the 12nd byte on the ICMP heads of the ICMP bandwidth requests message include the purpose end equipment
IP address.
The third of the third aspect is achieved in that:The type of the ICMP bandwidth requests message is 15, the ICMP bands
The code of wide request message is 0.
The 4th kind of the third aspect is achieved in that:The bandwidth back message is ICMP bandwidth back messages.
The 5th kind of the third aspect is achieved in that:The equipment also includes:Second sending module and the second receiving module;
Second sending module be used for according to the IP address of the purpose end equipment to the purpose end equipment send TTL be n because
Special net bag survey meter ping request messages;Second receiving module is used to set to the destination in second sending module
After preparation send the ping request messages that TTL is n, the TTL timeout packets from n intermediate equipment are received, obtain n intermediate
The IP address of equipment.
Fourth aspect, there is provided a kind of equipment for obtaining bandwidth information, the equipment include:Receiving module and sending module;
The receiving module is used to receive the bandwidth request message from originator device, wherein, the purpose of the bandwidth request message
Address is the IP address of the intermediate equipment, and the bandwidth request message also carries the IP address of purpose end equipment;The transmission
Module is used for after the receiving module receives the bandwidth request message from originator device, is sent to the originator device
Bandwidth back message, wherein, the bandwidth back message includes the outgoing interface and the institute intermediate equipment to purpose end equipment
The bandwidth information of outgoing interface is stated, wherein, the outgoing interface is determined according to the IP address of the purpose end equipment.
The first of fourth aspect is achieved in that:The bandwidth request message is ICMP bandwidth request messages, in described
Between equipment IP address in the IP heads of the ICMP bandwidth requests message, the IP address of the purpose end equipment is described
In the ICMP heads of ICMP bandwidth request messages.
Second of fourth aspect is achieved in that:The bandwidth back message is ICMP bandwidth back messages.
The third of fourth aspect is achieved in that:The first character section on the ICMP heads of the ICMP bandwidth back message
Include the type of the ICMP bandwidth back message, second byte on the ICMP heads of the ICMP bandwidth back message includes
The code of the ICMP bandwidth back message, third and fourth byte packet on the ICMP heads of the ICMP bandwidth back message
Include verification and the 5th and the 6th word on the ICMP heads of the ICMP bandwidth back message of the ICMP bandwidth back message
Saving includes the identifier of the ICMP bandwidth back message, and the 7th and the 8th of the ICMP heads of the ICMP bandwidth back message the
Individual byte includes the sequence number of the ICMP bandwidth back message, the 8th of the ICMP heads of the ICMP bandwidth back message
After byte, every four bytes mark ID, described m-th of m-th of outgoing interface including the intermediate equipment respectively in order
The bandwidth information of outgoing interface input direction and outbound course, wherein, m is natural number.
The 4th kind of fourth aspect is achieved in that:The type of the ICMP bandwidth back message is 16, the ICMP bands
The code of wide back message is 0.
Originator device of the present invention is to intermediate equipment transmission bandwidth request message, and bandwidth request message including centre except setting
Outside standby IP address, the IP address of purpose end equipment is also carried so that intermediate equipment obtains according to the IP address of purpose end equipment
Intermediate equipment receives the band of intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, then originator device
Wide back message, obtain the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can in real time, intuitively
Ground obtains the bandwidth information of intermediate equipment end to end, improves O&M efficiency, and simple to operate.
Brief description of the drawings
Fig. 1 is the network topology signal between device A and equipment B in the internet in one embodiment of the present invention
Figure;
Fig. 2 is the flow chart of the embodiment of preparation method one of bandwidth information of the present invention;
Fig. 3 is the flow chart of another embodiment of preparation method of bandwidth information of the present invention;
Fig. 4 is the flow chart of the another embodiment of preparation method of bandwidth information of the present invention;
Fig. 5 is the flow chart of the another embodiment of preparation method of bandwidth information of the present invention;
Fig. 6 is the structural representation for the embodiment of equipment one that the present invention obtains bandwidth information;
Fig. 7 is the structural representation for another embodiment of equipment that the present invention obtains bandwidth information;
Fig. 8 is the structural representation for the another embodiment of equipment that the present invention obtains bandwidth information;
Fig. 9 is the structural representation for the another embodiment of equipment that the present invention obtains bandwidth information;
Figure 10 is the structural representation for the embodiment of device one that the present invention obtains bandwidth information;
Figure 11 is the structural representation for another embodiment of device that the present invention obtains bandwidth information.
Embodiment
Refering to Fig. 1, Fig. 1 is that the network topology in an embodiment of the present invention in internet between device A and equipment B is shown
It is intended to, as illustrated, there are many intermediate equipments between slave unit A11 to equipment B12, is set in network management, it is necessary to obtain
The bandwidth information of each intermediate equipment or some intermediate equipment between standby A11 to equipment B12, thus need real-time query to set
The bandwidth information of intermediate equipment between standby A11 to equipment B12.
Present inventor has found in the long-term R & D of this area, in the prior art, query facility A11 to equipment
The bandwidth information of intermediate equipment between B12, all loses time very much, and not enough intuitively, O&M efficiency is low, and needs to be familiar with network
Topology is higher for the skill set requirements of operation employee.
The equipment that embodiment of the present invention provides a kind of preparation method of bandwidth information and obtains bandwidth information, Neng Goushi
When, intuitively obtain bandwidth information in intermediate equipment end to end, improve O&M efficiency, and simple to operate.With reference to
The present invention is described in detail for drawings and embodiments.
Refering to Fig. 2, Fig. 2 is the flow chart of the embodiment of preparation method one of bandwidth information of the present invention, and present embodiment is
Originator device obtains the flow chart of bandwidth information, including:
Step S101:Originator device sends band to the n intermediate equipment between originator device and purpose end equipment
Wide request message, wherein, the destination address of bandwidth request message is the internet protocol IP address of n intermediate equipment, band
Wide request message also carries the IP address of purpose end equipment, and n is natural number.
Message is that the data cell with transmission, i.e. website, the data block disposably to be sent are exchanged in network.Lead in message
Often include the IP address of purpose IP address, i.e. receiving terminal.
Bandwidth request message is the request message that transmitting terminal is sent to receiving terminal, and request obtains receiving terminal to purpose end equipment
Outgoing interface and outgoing interface bandwidth information, therefore, in bandwidth request message in addition to purpose IP address, it is necessary to carry mesh
End equipment IP address.
Originator device is to n intermediate equipment transmission bandwidth request message, the then destination address of bandwidth request message
The IP address of n intermediate equipment, and carry the IP address of purpose end equipment.
Step S102:Originator device receives the bandwidth back message from n intermediate equipment, obtains n intermediate
Equipment is to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface.
Originator device is to the n intermediate equipment transmission bandwidth request message between originator device and purpose end equipment
Afterwards, n intermediate equipment receives the bandwidth request message that originator device is sent, and the purpose carried according to bandwidth request message
The IP address of end equipment, obtain local(That is n intermediate equipment)To the outgoing interface of purpose end equipment and the bandwidth letter of outgoing interface
Breath.If outgoing interface more than one, the bandwidth information of multiple outgoing interfaces and each outgoing interface can also be determined, naturally it is also possible to only
Determine the part outgoing interface in multiple outgoing interfaces and corresponding bandwidth information.Bandwidth information includes but is not limited to:Remaining bandwidth
Information, or bandwidth information is used, or bandwidth availability ratio etc..
Originator device of the present invention is to intermediate equipment transmission bandwidth request message, and bandwidth request message including centre except setting
Outside standby IP address, the IP address of purpose end equipment is also carried so that intermediate equipment obtains according to the IP address of purpose end equipment
Intermediate equipment receives the band of intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, then originator device
Wide back message, obtain the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can in real time, intuitively
Ground obtains the bandwidth information of intermediate equipment end to end, improves O&M efficiency, and simple to operate.
Refering to Fig. 3, Fig. 3 is the flow chart of another embodiment of preparation method of bandwidth information of the present invention, present embodiment
It is the flow chart that originator device obtains bandwidth information, including:
Step S201:Originator device is according to the IP address of purpose end equipment, inquiry acquisition originator device to destination
The outgoing interface and outgoing interface bandwidth information of equipment.
For example, inquiry originator device routing table, obtains originator device and goes out to originator device during purpose end equipment
The bandwidth information of interface and outgoing interface input and output direction, bandwidth information include but is not limited to:Remaining bandwidth information or
With bandwidth information or bandwidth availability ratio etc..
Routing table is an electrical form being stored in router or Net-connected computer(File)Or class database, road
The path for pointing to particular network address is store by table(In some cases, also record has the route metric value in path), route
Topology information containing network perimeter in table.
Originator device can be obtained to the outgoing interface of originator device during purpose end equipment by routing table, then inquired about
Bandwidth information of the outgoing interface in input and output direction.
If the outgoing interface bandwidth information for inquiring about originator device to the purpose end equipment of acquisition in step s 201 is band
Wide utilization rate, then originator device is according to the bandwidth availability ratio of the originator device outgoing interface input and output direction found,
When can obtain originator device to purpose end equipment, the outgoing interface input direction of originator device and the tape remaining of outbound course
Wide information:
Wherein, the remaining bandwidth of outgoing interface input direction is equal to the difference of 1 bandwidth availability ratio for subtracting outgoing interface input direction
Value is multiplied by the bandwidth of outgoing interface, i.e., the bandwidth of remaining bandwidth=outgoing interface of outgoing interface input direction ×(1- outgoing interface input directions
Bandwidth availability ratio), the remaining bandwidth of outgoing interface outbound course is equal to the difference of 1 bandwidth availability ratio for subtracting outgoing interface outbound course
Value is multiplied by the bandwidth of outgoing interface, i.e., the bandwidth of remaining bandwidth=outgoing interface of outgoing interface outbound course ×(1- outgoing interface outbound courses
Bandwidth availability ratio).
According to the bandwidth availability ratio of the originator device outgoing interface input and output direction found, you can obtain originating terminal
When equipment is to purpose end equipment, the outgoing interface input direction of originator device and the remaining bandwidth of outbound course.
It is pointed out that step S201 be originator device require to obtain the local outgoing interface to purpose end equipment with
And during outgoing interface bandwidth information, the step of just execution, and the sequencing for performing step S201 has no special requirements, can be according to reality
Border situation, determine the order that step S201 is performed.Locally go out to connect to purpose end equipment if originator device need not obtain
Mouthful and outgoing interface bandwidth information, then step S201 without carrying out.
Step S202:It is n's that originator device sends a TTL according to the IP address of purpose end equipment to purpose end equipment
Ping request messages.
It is route according to tracking(Traceroute)Operation principle, request message by the 1st to n intermediate equipment,
N intermediate equipment TTL time-out abandons, and requires that n intermediate equipment responds a TTL timeout packet to originator device.
Traceroute is that route tracks utility program, the path taken for determining IP packet access targets.
Traceroute orders IP life spans (TTL) field and the Internet network Internet Control Message Protocol(ICMP, internet
control message protocol)Error message determines the route from an equipment to miscellaneous equipment on network.
Traceroute operation principle:By the ICMP packets that different TTL are sent to target, it is desirable to each router on path
The TTL on the packet is at least successively decreased 1 before packet is forwarded, when the TTL on packet is kept to 0, router should will
The message of " ICMP has timed out " beams back source address;Traceroute first sends the packet that TTL is 1, and in subsequent each hair
TTL is incremented by 1 during sending, until target response or TTL reach maximum, " the ICMP beamed back by checking intermediate router
Have timed out " message determine route.
The Internet packets survey meter(Ping, Packet Internet Groper), the program for test network connection.It
It is for checking whether network unobstructed or order of network connection speed.The principle that ping is utilized is:Using being set on network
The uniqueness of standby IP address, a packet is sent to target ip address, then require that other side returns to an an equal amount of data
Bag communicates to determine whether two network equipments connect, and time delay is how many.
Step S202 sends the ping request messages that a TTL is n to purpose end equipment, therefore originator device can obtain
The 1st intermediate equipment IP address or the 2nd intermediate equipment IP address ... or the IP address of n intermediate equipment.
Step S203:Originator device receives the TTL timeout packets from n intermediate equipment, obtains n intermediate and sets
Standby IP address.
According to Traceroute operation principle, after the ping request messages that originator device sends that a TTL is n,
The TTL that n intermediate equipment receives is 1, and when the TTL on message is kept to 0, the n intermediate equipment should be by TTL timeout packets
Message beam back originator device.
It should be noted that step S202 and step S203 are mainly the IP that originator device obtains n intermediate equipment
One method of address, in actual applications, originator device can also obtain the IP of n intermediate equipment by other methods
Address, superfluous chat no longer is carried out herein.
Step S204:Originator device is generated and sent to n intermediate equipment according to the IP address of n intermediate equipment
Bandwidth request message.
The destination address of bandwidth request message is the IP address of n intermediate equipment, and bandwidth request message also carries purpose
The IP address of end equipment.
Wherein, bandwidth request message is ICMP bandwidth request messages, and the IP address of n intermediate equipment please in ICMP bandwidth
In the IP heads for seeking message, the IP address of purpose end equipment is in the ICMP heads of ICMP bandwidth request messages.
One complete icmp packet includes:IP heads and ICMP heads.In ICMP bandwidth request messages, IP heads are
The IP address of n intermediate equipment, and the IP address of purpose end equipment is in ICMP heads.
Specifically, the first character section on the ICMP heads of ICMP bandwidth requests message includes the class of ICMP bandwidth request messages
Type, second byte on the ICMP heads of ICMP bandwidth request messages include the code of icmp packet, ICMP bandwidth request messages
ICMP heads third and fourth byte including icmp packet verification and, the ICMP heads of ICMP bandwidth request messages
5th and the 6th byte includes the identifier of icmp packet, the 7th and the 8th of the ICMP heads of ICMP bandwidth request messages
Byte includes the sequence number of icmp packet, and the 9th to the 12nd byte on the ICMP heads of ICMP bandwidth request messages includes mesh
End equipment IP address.
Wherein, the type of ICMP bandwidth requests message is that the code of 15, ICMP bandwidth request messages is 0.
Referring to table 1, table 1 is the form on ICMP bandwidth request message ICMP heads:
The ICMP bandwidth request message ICMP header formats of table 1
Certainly, it should be pointed out that bandwidth request message is in addition to being ICMP bandwidth request messages or other full
Foot requires(That is the destination address of bandwidth request message is the IP address of n intermediate equipment, and also carries purpose end equipment
IP address)Bandwidth request message, no longer carry out superfluous chat herein.
Step S205:Originator device sends band to the n intermediate equipment between originator device and purpose end equipment
Wide request message, wherein, the destination address of bandwidth request message is the IP address of n intermediate equipment, and bandwidth request message is also
The IP address of purpose end equipment is carried, n is natural number.
Originator device is after the IP address of n intermediate equipment is obtained, according to the IP address of the n intermediate equipment,
Send a bandwidth request message to n intermediate equipment, n intermediate equipment originator device and purpose end equipment it
Between.
Wherein, bandwidth request message is ICMP bandwidth request messages, and the IP address of n intermediate equipment please in ICMP bandwidth
In the IP heads for seeking message, the IP address of purpose end equipment is in the ICMP heads of ICMP bandwidth request messages.
Step S206:Originator device receives the bandwidth back message from n intermediate equipment, obtains n intermediate
Equipment is to the outgoing interface of purpose end equipment and the bandwidth information of the outgoing interface.
Originator device is sent to the n intermediate equipment between originator device and purpose end equipment in step S205
Bandwidth request message when being ICMP bandwidth request messages, originator device receives and comes from n intermediate equipment in step S206
Bandwidth back message be ICMP bandwidth back messages.
To sum up, originator device is to intermediate equipment transmission bandwidth request message, and bandwidth request message including centre except setting
Outside standby IP address, the IP address of purpose end equipment is also carried so that intermediate equipment obtains according to the IP address of purpose end equipment
Intermediate equipment receives the band of intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, then originator device
Wide back message, obtain the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can in real time, intuitively
Ground obtains the bandwidth information of intermediate equipment end to end, improves O&M efficiency, and simple to operate.
In addition, the type of ICMP bandwidth requests message and ICMP bandwidth back messages is 15 and 16 respectively, at present, this two
The icmp packet of type 15 and 16 is to retain, and is not used, is responded in ICMP bandwidth requests message and ICMP bandwidth
Usage type 15 and 16 in message, the resource type of existing icmp packet can be made full use of.
Moreover, constantly circulated according to above steps, until receiving the ping back messages from purpose end equipment, you can
When obtaining originator device to purpose end equipment, the bandwidth information of the outgoing interface of all intermediate equipments and the outgoing interface.
Refering to Fig. 4, Fig. 4 is the flow chart of the another embodiment of preparation method of bandwidth information of the present invention, present embodiment
It is the flow chart that intermediate equipment obtains bandwidth information, including:
Step S301:Intermediate equipment receives the bandwidth request message from originator device, wherein, bandwidth request message
Destination address is the IP address of intermediate equipment, and bandwidth request message also carries the IP address of purpose end equipment.
For originator device to after intermediate equipment transmission bandwidth request message, intermediate equipment receives the band that originator device is sent
Wide request message.In the bandwidth request message, destination address is the IP address of the intermediate equipment, meanwhile, the bandwidth request report
Text also carries the IP address of purpose end equipment.
Step S302:Intermediate equipment to originator device transmission bandwidth back message, wherein, during bandwidth back message includes
Between equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, wherein, the outgoing interface is according to the purpose
What the IP address of end equipment determined.
Intermediate equipment judge destination address in the bandwidth request message whether be the intermediate equipment IP address, confirming
During to be the IP address of the intermediate equipment, the IP address for the purpose end equipment that intermediate equipment carries according to bandwidth request message, obtain
Obtain the bandwidth information of the outgoing interface and outgoing interface that locally arrive purpose end equipment.If outgoing interface more than one, it can also determine
The bandwidth information of multiple outgoing interfaces and each outgoing interface, naturally it is also possible to only determine part outgoing interface in multiple outgoing interfaces and
Corresponding bandwidth information.Bandwidth information includes but is not limited to:Remaining bandwidth information, or bandwidth information is used, or bandwidth availability ratio.
For intermediate equipment to originator device transmission bandwidth back message, the bandwidth back message includes intermediate equipment to purpose
The outgoing interface of end equipment and the bandwidth information of outgoing interface, wherein, outgoing interface is determined according to the IP address of purpose end equipment.
Intermediate equipment of the present invention sends band after the bandwidth request message from originator device is received, to originator device
Wide back message, bandwidth back message include intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface,
Consequently facilitating the information that originator device obtains intermediate equipment is wide.In this way, in real time, intuitively end can be inquired about to arrive
The bandwidth information of the intermediate equipment at end, O&M efficiency is improved, and it is simple to operate.
Refering to Fig. 5, Fig. 5 is the flow chart of the another embodiment of preparation method of bandwidth information of the present invention, present embodiment
It is the flow chart that intermediate equipment obtains bandwidth information, including:
Step S401:Intermediate equipment receives the ping request messages that TTL is p, wherein, p is natural number.
Step S402:Intermediate equipment judges whether p is equal to 1 after the ping request messages that TTL is p are received;If p
More than 1, then TTL is subtracted 1 by intermediate equipment, and forwards the ping request messages, while terminates the flow;If p is equal to 1, enter
Enter step S403.
Step S403:If p is equal to 1, intermediate equipment sends a TTL timeout packet to originator device.
P is equal to 1, then subtracts 1, as 0, now intermediate equipment need to send TTL timeout packets to originator device.
Step S404:Intermediate equipment receives the bandwidth request message from originator device, wherein, bandwidth request message
Destination address is the IP address of intermediate equipment, and bandwidth request message also carries the IP address of purpose end equipment.
After originator device receives TTL timeout packets, the IP address of intermediate equipment is obtained, according to the IP of intermediate equipment
Location, to intermediate equipment, transmission bandwidth request message, intermediate equipment receive the bandwidth request message that originator device is sent again.
Wherein, bandwidth request message is ICMP bandwidth request messages, and the IP address of intermediate equipment is in ICMP bandwidth request reports
In the IP heads of text, the IP address of purpose end equipment is in the ICMP heads of ICMP bandwidth request messages.
Step S405:Intermediate equipment is after it is determined that the destination address of bandwidth request message is local IP address, according to connecing
The IP address of purpose end equipment in the bandwidth request message received, inquiry obtain intermediate equipment to the outgoing interface of purpose end equipment
And outgoing interface bandwidth information.
For example, inquiry intermediate equipment routing table, when obtaining intermediate equipment to purpose end equipment, all of intermediate equipment go out to connect
The bandwidth information of mouth and all outgoing interface input and output directions, bandwidth information include but is not limited to:Remaining bandwidth information or
With bandwidth information or bandwidth availability ratio etc..
If the outgoing interface bandwidth information that intermediate equipment to the purpose end equipment of acquisition is inquired about in step S405 is bandwidth
Utilization rate, then intermediate equipment, can according to the bandwidth availability ratio of all outgoing interface input and output directions of the intermediate equipment found
During obtaining intermediate equipment to purpose end equipment, the remaining bandwidth of all the outgoing interface input directions and outbound course of intermediate equipment
Information:
Wherein, the remaining bandwidth of each outgoing interface input direction is equal to 1 bandwidth availability ratio for subtracting outgoing interface input direction
Difference be multiplied by the bandwidth of outgoing interface, i.e., the bandwidth of remaining bandwidth=outgoing interface of outgoing interface input direction ×(1- outgoing interfaces input
The bandwidth availability ratio in direction), the remaining bandwidth of each outgoing interface outbound course is equal to the 1 bandwidth profit for subtracting outgoing interface outbound course
Be multiplied by the bandwidth of outgoing interface with the difference of rate, i.e., the bandwidth of remaining bandwidth=outgoing interface of outgoing interface outbound course ×(1- outgoing interfaces
The bandwidth availability ratio of outbound course).
Step S406:Intermediate equipment generates the bandwidth back message sent to originator device, wherein, bandwidth back message
Including intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface.
After the outgoing interface of intermediate equipment inquiry acquisition intermediate equipment to purpose end equipment and the bandwidth information of outgoing interface,
Generate the bandwidth back message sent to originator device, the information that the bandwidth back message includes is intermediate equipment to mesh
The outgoing interface of end equipment and the bandwidth information of outgoing interface.
Wherein, bandwidth back message is ICMP bandwidth back messages.The first of the ICMP heads of ICMP bandwidth back messages
Individual byte includes the type of ICMP bandwidth back messages, and second byte on the ICMP heads of ICMP bandwidth back messages includes
The code of ICMP bandwidth back messages, third and fourth byte on the ICMP heads of ICMP bandwidth back messages include ICMP bands
The verification of wide back message and, the 5th and the 6th byte on the ICMP heads of ICMP bandwidth back messages includes ICMP bandwidth and returned
The identifier of message is answered, the 7th and the 8th byte on the ICMP heads of ICMP bandwidth back messages includes ICMP bandwidth and respond report
The sequence number of text, after the 8th byte on the ICMP heads of ICMP bandwidth back messages, every four bytes are wrapped respectively in order
The bandwidth information of the mark ID of m-th of outgoing interface of intermediate equipment, m-th of outgoing interface input direction and outbound course is included, its
In, m is natural number.
Further, the type of ICMP bandwidth back message is that the code of 16, ICMP bandwidth back messages is 0.
Refering to table 2, table 2 is the form on ICMP bandwidth back message ICMP heads:
The form on the ICMP bandwidth back message ICMP heads of table 2
Step S407:Intermediate equipment to originator device transmission bandwidth back message, wherein, during bandwidth back message includes
Between equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, wherein, outgoing interface is according to purpose end equipment
What IP address determined.
After intermediate equipment receives the bandwidth request message of originator device transmission, according to the bandwidth request message, to the beginning
Inchoation equipment transmission bandwidth back message, when the bandwidth back message includes intermediate equipment to purpose end equipment, intermediate equipment
The bandwidth information of all outgoing interfaces and outgoing interface, wherein, outgoing interface is determined according to the IP address of purpose end equipment.
Wherein, when bandwidth request message is ICMP bandwidth request messages, bandwidth back message is that ICMP bandwidth responds report
Text.
Intermediate equipment of the present invention sends band after the bandwidth request message from originator device is received, to originator device
Wide back message, bandwidth back message include intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface,
Consequently facilitating the information that originator device obtains intermediate equipment is wide.In this way, in real time, intuitively end can be inquired about to arrive
The bandwidth information of the intermediate equipment at end, O&M efficiency is improved, and it is simple to operate.
Refering to Fig. 6, Fig. 6 be the present invention obtain bandwidth information the embodiment of equipment one structural representation, this embodiment party
Formula is the equipment that originating terminal obtains bandwidth information.
Alternatively, the equipment of the acquisition bandwidth information shown in Fig. 6 can be realized in embodiment as shown in Figure 2 or Figure 3
Originator device operation.
Alternatively, the equipment of acquisition bandwidth information as shown in Figure 6 includes:First sending module 101 and first receives mould
Block 102.
First sending module 101 is used for please to the n intermediate equipment transmission bandwidth between the equipment and purpose end equipment
Message is sought, wherein, the destination address of bandwidth request message is the internet protocol IP address of n intermediate equipment, and bandwidth please
Message is asked also to carry the IP address of purpose end equipment, n is natural number.
Bandwidth request message is the request message that transmitting terminal is sent to receiving terminal, and request obtains receiving terminal to purpose end equipment
Outgoing interface and outgoing interface bandwidth information, therefore, in bandwidth request message in addition to purpose IP address, it is necessary to carry mesh
End equipment IP address.
Originator device is to n intermediate equipment transmission bandwidth request message, the then destination address of bandwidth request message
The IP address of n intermediate equipment, and carry the IP address of purpose end equipment.
First receiving module 102 is used in the first sending module 101 into n-th between the equipment and purpose end equipment
Between after equipment transmission bandwidth request message, receive the bandwidth back message from n intermediate equipment, obtain n intermediate and set
The bandwidth information of the standby outgoing interface and outgoing interface for arriving purpose end equipment.
Originator device is to the n intermediate equipment transmission bandwidth request message between originator device and purpose end equipment
Afterwards, n intermediate equipment receives the bandwidth request message that originator device is sent, and the purpose carried according to bandwidth request message
The IP address of end equipment, obtain local(That is n intermediate equipment)To the outgoing interface of purpose end equipment and the bandwidth letter of outgoing interface
Breath.If outgoing interface more than one, obtain the bandwidth information of multiple outgoing interfaces and each outgoing interface.Bandwidth information is included but not
It is limited to:Remaining bandwidth information uses bandwidth information or bandwidth availability ratio.
Originator device of the present invention is to intermediate equipment transmission bandwidth request message, and bandwidth request message including centre except setting
Outside standby IP address, the IP address of purpose end equipment is also carried so that intermediate equipment obtains according to the IP address of purpose end equipment
Intermediate equipment receives the band of intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, then originator device
Wide back message, obtain the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can in real time, intuitively
Ground obtains the bandwidth information of intermediate equipment end to end, improves O&M efficiency, and simple to operate.
Refering to Fig. 7, Fig. 7 be the present invention obtain bandwidth information another embodiment of equipment structural representation, this implementation
Mode is the equipment that originating terminal obtains bandwidth information, and the equipment includes:Bandwidth obtains module 201, the first sending module 202, the
One receiving module 203, the second sending module 204, the second receiving module 205 and message generation module 206.
Bandwidth obtains module 201 for the IP address according to purpose end equipment, and inquiry obtains originator device to destination
The outgoing interface and outgoing interface bandwidth information of equipment.
It is n's that second sending module 204, which is used to send a TTL to purpose end equipment according to the IP address of purpose end equipment,
Ping request messages.
Second receiving module 205 receives the TTL timeout packets from n intermediate equipment, obtains n intermediate equipment
IP address, and to message generation module 206 send n intermediate equipment IP address.
Message generation module 206 is used for the IP address for receiving the n intermediate equipment that the second receiving module 205 is sent, and presses
According to the IP address of n intermediate equipment, the bandwidth request message sent to n intermediate equipment is generated, and by the bandwidth of generation
Request message is sent to the first sending module 202.
The destination address of bandwidth request message is the IP address of n intermediate equipment, and bandwidth request message also carries purpose
The IP address of end equipment.
Wherein, bandwidth request message is ICMP bandwidth request messages, and the IP address of n intermediate equipment please in ICMP bandwidth
In the IP heads for seeking message, the IP address of purpose end equipment is in the ICMP heads of ICMP bandwidth request messages.
One complete icmp packet includes:IP heads and ICMP heads.In ICMP bandwidth request messages, IP heads are
The IP address of n intermediate equipment, and the IP address of purpose end equipment is in ICMP heads.
Specifically, the first character section on the ICMP heads of ICMP bandwidth requests message includes the class of ICMP bandwidth request messages
Type, second byte on the ICMP heads of ICMP bandwidth request messages include the code of icmp packet, ICMP bandwidth request messages
ICMP heads third and fourth byte including icmp packet verification and, the ICMP heads of ICMP bandwidth request messages
5th and the 6th byte includes the identifier of icmp packet, the 7th and the 8th of the ICMP heads of ICMP bandwidth request messages
Byte includes the sequence number of icmp packet, and the 9th to the 12nd byte on the ICMP heads of ICMP bandwidth request messages includes mesh
End equipment IP address.
Wherein, the type of ICMP bandwidth requests message is that the code of 15, ICMP bandwidth request messages is 0.
First sending module 202 is used for the bandwidth request message for receiving the transmission of message generation module 206, to the equipment and mesh
End equipment between n intermediate equipment transmission bandwidth request message, wherein, the destination address of bandwidth request message is n-th
The IP address of individual intermediate equipment, bandwidth request message also carry the IP address of purpose end equipment, and n is natural number.
First receiving module 203 is used in the first sending module 202 into n-th between the equipment and purpose end equipment
Between after equipment transmission bandwidth request message, receive the bandwidth back message from n intermediate equipment, obtain n intermediate and set
The bandwidth information of the standby outgoing interface and outgoing interface for arriving purpose end equipment.
When bandwidth request message is ICMP bandwidth request messages, bandwidth back message is ICMP bandwidth back messages.
In a word, originator device of the present invention is to intermediate equipment transmission bandwidth request message, bandwidth request message except including
Outside the IP address of intermediate equipment, the IP address of purpose end equipment is also carried so that intermediate equipment is according to the IP of purpose end equipment
Location obtains intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, is then set among originator device reception
Standby bandwidth back message, obtain the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, Neng Goushi
When, intuitively obtain the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
In addition, the type of ICMP bandwidth requests message and ICMP bandwidth back messages is 15 and 16 respectively, at present, both
The icmp packet of Class1 5 and 16 is to retain, and is not used, in ICMP bandwidth requests message and ICMP bandwidth back messages
Middle usage type 15 and 16, the resource type of existing icmp packet can be made full use of.
Moreover, when the present invention can obtain originator device to purpose end equipment, the outgoing interface of all intermediate equipments and institute
State the bandwidth information of outgoing interface.
Refering to Fig. 8, Fig. 8 be the present invention obtain bandwidth information the another embodiment of equipment structural representation, this implementation
Mode is to obtain the intermediate equipment of bandwidth information.
Alternatively, the intermediate equipment shown in Fig. 8 can realize the intermediate equipment in the embodiment as shown in Fig. 4 or Fig. 5
Operation.
Alternatively, the equipment of acquisition bandwidth information as shown in Figure 8 includes:Receiving module 301 and sending module 302.
Receiving module 301 is used to receive the bandwidth request message from originator device, wherein, the mesh of bandwidth request message
Address be intermediate equipment IP address, bandwidth request message also carries the IP address of purpose end equipment.
Sending module 302 is used for after receiving module 301 receives the bandwidth request message from originator device, to originating
End equipment transmission bandwidth back message, wherein, bandwidth back message include intermediate equipment to purpose end equipment outgoing interface and
The bandwidth information of outgoing interface, outgoing interface are determined according to the IP address of purpose end equipment.
Intermediate equipment of the present invention sends band after the bandwidth request message from originator device is received, to originator device
Wide back message, bandwidth back message include intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface,
Consequently facilitating the information that originator device obtains intermediate equipment is wide.In this way, in real time, intuitively end can be inquired about to arrive
The bandwidth information of the intermediate equipment at end, O&M efficiency is improved, and it is simple to operate.
Participate in Fig. 9, Fig. 9 be the present invention obtain bandwidth information the another embodiment of equipment structural representation, this implementation
Mode is to obtain the intermediate equipment of bandwidth information, and the equipment includes:First receiving module 401, judge module 402, first are sent
Module 403, receiving module 404, bandwidth obtain module 405, message generation module 406 and sending module 407.
First receiving module 401 is used to receive the ping request messages that TTL is p, wherein, p is natural number, and is by TTL
P ping request messages are sent to judge module 402.
Judge module 402 is used to receive the ping request messages that the TTL that the first receiving module 401 is sent is p, judges that p is
It is no to be equal to 1, and will determine that result is sent to the first sending module 403.
First sending module 403 is used for the judged result for receiving judge module 402, when p is equal to 1, to originator device
Send a TTL timeout packet.
Receiving module 404 is used for after the first sending module 403 sends TTL timeout packets to originator device, receives and
From the bandwidth request message of originator device, wherein, the destination address of bandwidth request message is the IP address of intermediate equipment, bandwidth
Request message also carries the IP address of purpose end equipment, and the bandwidth request message of originator device is obtained into module to bandwidth
405 send.
Bandwidth obtains module 405 and is used to receive the bandwidth request message from receiving module 404, it is determined that bandwidth request report
After the destination address of text is local IP address, the IP address of the purpose end equipment in the bandwidth request message of reception, look into
The outgoing interface and outgoing interface bandwidth information for obtaining intermediate equipment to purpose end equipment are ask, and is sent to message generation module 406
The intermediate equipment of acquisition is inquired about to the outgoing interface and outgoing interface bandwidth information of purpose end equipment.
For example, inquiry intermediate equipment routing table, when obtaining intermediate equipment to purpose end equipment, all of intermediate equipment go out to connect
The bandwidth information of mouth and all outgoing interface input and output directions, bandwidth information include but is not limited to:Remaining bandwidth information or
With bandwidth information or bandwidth availability ratio etc..If the outgoing interface bandwidth for inquiring about the intermediate equipment to the purpose end equipment that obtain is believed
Breath is bandwidth availability ratio, then according to bandwidth availability ratio, when can obtain the equipment to purpose end equipment, all of the equipment go out to connect
The remaining bandwidth information of mouth input direction and outbound course:
Wherein, the remaining bandwidth of each outgoing interface input direction is equal to 1 bandwidth availability ratio for subtracting outgoing interface input direction
Difference be multiplied by the bandwidth of outgoing interface, i.e., the bandwidth of remaining bandwidth=outgoing interface of outgoing interface input direction ×(1- outgoing interfaces input
The bandwidth availability ratio in direction), the remaining bandwidth of each outgoing interface outbound course is equal to the 1 bandwidth profit for subtracting outgoing interface outbound course
Be multiplied by the bandwidth of outgoing interface with the difference of rate, i.e., the bandwidth of remaining bandwidth=outgoing interface of outgoing interface outbound course ×(1- outgoing interfaces
The bandwidth availability ratio of outbound course).
When message generation module 406 is used for the equipment of the reception bandwidth acquisition transmission of module 405 to purpose end equipment, this sets
The bandwidth information of standby all outgoing interface input directions and outbound course, generate the bandwidth sent to originator device and respond report
Text, wherein, bandwidth back message includes intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, and will
The bandwidth back message is sent to sending module 407.
Wherein, bandwidth back message is ICMP bandwidth back messages.The first of the ICMP heads of ICMP bandwidth back messages
Individual byte includes the type of ICMP bandwidth back messages, and second byte on the ICMP heads of ICMP bandwidth back messages includes
The code of ICMP bandwidth back messages, third and fourth byte on the ICMP heads of ICMP bandwidth back messages include ICMP bands
The verification of wide back message and, the 5th and the 6th byte on the ICMP heads of ICMP bandwidth back messages includes ICMP bandwidth and returned
The identifier of message is answered, the 7th and the 8th byte on the ICMP heads of ICMP bandwidth back messages includes ICMP bandwidth and respond report
The sequence number of text, after the 8th byte on the ICMP heads of ICMP bandwidth back messages, every four bytes are wrapped respectively in order
The bandwidth information of the mark ID of m-th of outgoing interface of intermediate equipment, m-th of outgoing interface input direction and outbound course is included, its
In, m is natural number.
Further, the type of ICMP bandwidth back message is that the code of 16, ICMP bandwidth back messages is 0.
Sending module 407 is used for after the bandwidth back message that message generation module 406 is sent is received, to originator device
Transmission bandwidth back message, wherein, bandwidth back message includes intermediate equipment to the outgoing interface and outgoing interface of purpose end equipment
Bandwidth information, outgoing interface is determined according to the IP address of purpose end equipment.
Wherein, when bandwidth request message is ICMP bandwidth request messages, bandwidth back message is that ICMP bandwidth responds report
Text.
Intermediate equipment of the present invention sends band after the bandwidth request message from originator device is received, to originator device
Wide back message, bandwidth back message include intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface,
Consequently facilitating the information that originator device obtains intermediate equipment is wide.In this way, in real time, intuitively end can be inquired about to arrive
The bandwidth information of the intermediate equipment at end, O&M efficiency is improved, and it is simple to operate.
Refering to Figure 10, Figure 10 be the present invention obtain bandwidth information the embodiment of device one structural representation, this implementation
Mode is the device that originating terminal obtains bandwidth information, and the device includes:Transmitter 11, receiver 12 and processor 13.It is described
Transmitter 11, receiver 12 and processor 13 cooperate, and realize the originating terminal in embodiment as shown in Figure 2 or Figure 3
The operation of equipment.
Alternatively, processor 13 is used to control transmitter 11 into n-th between originator device and purpose end equipment
Between equipment transmission bandwidth request message, wherein, the destination address of bandwidth request message is the Internet network association of n intermediate equipment
IP address is discussed, bandwidth request message also carries the IP address of purpose end equipment, and n is natural number;Control receiver 12, which receives, to be come from
The bandwidth back message of n intermediate equipment, n intermediate equipment is obtained to the outgoing interface of purpose end equipment and the band of outgoing interface
Wide information.
Wherein, bandwidth request message is the Internet network Internet Control Message Protocol ICMP bandwidth request messages, n intermediate equipment
IP address in the IP heads of ICMP bandwidth request messages, the IP address of purpose end equipment is in ICMP bandwidth request messages
In ICMP heads.
Wherein, the first character section on the ICMP heads of ICMP bandwidth requests message includes the class of ICMP bandwidth request messages
Type, second byte on the ICMP heads of ICMP bandwidth request messages include the code of icmp packet, ICMP bandwidth request messages
ICMP heads third and fourth byte including icmp packet verification and, the ICMP heads of ICMP bandwidth request messages
5th and the 6th byte includes the identifier of icmp packet, the 7th and the 8th of the ICMP heads of ICMP bandwidth request messages
Byte includes the sequence number of icmp packet, and the 9th to the 12nd byte on the ICMP heads of ICMP bandwidth request messages includes mesh
End equipment IP address.
Wherein, the type of ICMP bandwidth requests message is that the code of 15, ICMP bandwidth request messages is 0.
Processor 13 is additionally operable to control transmitter 11 to be sent because of spy to purpose end equipment according to the IP address of purpose end equipment
Procotol life span TTL is n the Internet packets survey meter ping request messages;Control receiver 12 to receive to come from n-th
The TTL timeout packets of intermediate equipment, obtain the IP address of n intermediate equipment.
Originator device of the present invention is to intermediate equipment transmission bandwidth request message, and bandwidth request message including centre except setting
Outside standby IP address, the IP address of purpose end equipment is also carried so that intermediate equipment obtains according to the IP address of purpose end equipment
Intermediate equipment receives the band of intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, then originator device
Wide back message, obtain the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can in real time, intuitively
Ground obtains the bandwidth information of intermediate equipment end to end, improves O&M efficiency, and simple to operate.
Refering to Figure 11, Figure 11 be the present invention obtain bandwidth information another embodiment of device structural representation, this reality
The mode of applying is the middle device for obtaining bandwidth information, and the device includes:Receiver 21, transmitter 22 and processor 23.It is described
Receiver 21, transmitter 22 and processor 23 cooperate, and realize the intermediate equipment in the embodiment as shown in Fig. 4 or Fig. 5
Operation.
Alternatively, processor 23 is used to control receiver 21 to receive the bandwidth request message from originator device, wherein,
The destination address of bandwidth request message is the IP address of intermediate equipment, and bandwidth request message is with also carrying the IP of purpose end equipment
Location;Processor 23 controls transmitter 22 to originator device transmission bandwidth back message, wherein, bandwidth back message includes centre
For equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface, outgoing interface is true according to the IP address of purpose end equipment
Fixed.
Wherein, bandwidth request message is ICMP bandwidth request messages, and the IP address of intermediate equipment is in ICMP bandwidth request reports
In the IP heads of text, the IP address of purpose end equipment is in the ICMP heads of ICMP bandwidth request messages.
Wherein, bandwidth back message is ICMP bandwidth back messages.The first of the ICMP heads of ICMP bandwidth back messages
Individual byte includes the type of ICMP bandwidth back messages, and second byte on the ICMP heads of ICMP bandwidth back messages includes
The code of ICMP bandwidth back messages, third and fourth byte on the ICMP heads of ICMP bandwidth back messages include ICMP bands
The verification of wide back message and, the 5th and the 6th byte on the ICMP heads of ICMP bandwidth back messages includes ICMP bandwidth and returned
The identifier of message is answered, the 7th and the 8th byte on the ICMP heads of ICMP bandwidth back messages includes ICMP bandwidth and respond report
The sequence number of text, after the 8th byte on the ICMP heads of ICMP bandwidth back messages, every four bytes are wrapped respectively in order
The bandwidth information of the mark ID of m-th of outgoing interface of intermediate equipment, m-th of outgoing interface input direction and outbound course is included, its
In, m is natural number.
Wherein, the type of ICMP bandwidth back message is that the code of 16, ICMP bandwidth back messages is 0.
Intermediate equipment of the present invention sends band after the bandwidth request message from originator device is received, to originator device
Wide back message, bandwidth back message include intermediate equipment to the outgoing interface of purpose end equipment and the bandwidth information of outgoing interface,
Consequently facilitating the information that originator device obtains intermediate equipment is wide.In this way, in real time, intuitively end can be inquired about to arrive
The bandwidth information of the intermediate equipment at end, O&M efficiency is improved, and it is simple to operate.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can
To realize by another way.For example, device embodiments described above are only schematical, for example, the mould
The division of block or unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple
Unit or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another
Point, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device or
The INDIRECT COUPLING of unit or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize present embodiment scheme according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units it is integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.The integrated unit
If realized in the form of SFU software functional unit and as independent production marketing or in use, a computer can be stored in
In read/write memory medium.Based on such understanding, the technical scheme of the application substantially makes tribute to prior art in other words
The all or part of the part offered or the technical scheme can be embodied in the form of software product, computer software production
Product are stored in a storage medium, including some instructions are causing a computer equipment(Can be personal computer, clothes
Business device, or network equipment etc.)Or processor(processor)Perform each embodiment methods described of the application whole or
Part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory)、
Random access memory(RAM, Random AccessMemory), magnetic disc or CD etc. are various can be with store program codes
Medium.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (22)
- A kind of 1. preparation method of bandwidth information, it is characterised in that including:Originator device to the n intermediate equipment transmission bandwidth request message between originator device and purpose end equipment, its In, the destination address of the bandwidth request message is the internet protocol IP address of n intermediate equipment, the bandwidth request Message also carries the IP address of purpose end equipment, and n is natural number;Originator device receives the bandwidth back message from n intermediate equipment, obtains n intermediate equipment and is set to destination Standby outgoing interface and the bandwidth information of the outgoing interface.
- 2. according to the method for claim 1, it is characterised in that the bandwidth request message is that the Internet network controls message association Discuss ICMP bandwidth request messages, the IP address of the n intermediate equipment in the IP heads of the ICMP bandwidth requests message, The IP address of the purpose end equipment is in the ICMP heads of the ICMP bandwidth requests message.
- 3. according to the method for claim 2, it is characterised in thatThe first character section on the ICMP heads of the ICMP bandwidth requests message includes the type of the ICMP bandwidth requests message, Second byte on the ICMP heads of the ICMP bandwidth requests message includes the code of the icmp packet, the ICMP bandwidth Third and fourth byte on the ICMP heads of request message includes the verification of the icmp packet and the ICMP bandwidth requests 5th and the 6th byte on the ICMP heads of message includes the identifier of the icmp packet, the ICMP bandwidth requests message The the 7th and the 8th byte on ICMP heads include the sequence number of the icmp packet, the ICMP bandwidth requests message 9th to the 12nd byte on ICMP heads includes the IP address of the purpose end equipment.
- 4. according to the method for claim 3, it is characterised in that the type of the ICMP bandwidth requests message is 15, described The code of ICMP bandwidth request messages is 0.
- 5. according to the method for claim 2, it is characterised in that the bandwidth back message is ICMP bandwidth back messages.
- 6. method according to any one of claim 1 to 5, it is characterised in that the originator device is set to originating terminal Before the standby n intermediate equipment transmission bandwidth request message between purpose end equipment, including:The originator device sends internet protocol life span according to the IP address of purpose end equipment to purpose end equipment TTL is n the Internet packets survey meter ping request messages;The originator device receives the TTL timeout packets from n intermediate equipment, with obtaining the IP of n intermediate equipment Location.
- A kind of 7. preparation method of bandwidth information, it is characterised in that including:Intermediate equipment receives the bandwidth request message from originator device, wherein, the destination address of the bandwidth request message It is the IP address of the intermediate equipment, the bandwidth request message also carries the IP address of purpose end equipment;The intermediate equipment to the originator device transmission bandwidth back message, wherein, the bandwidth back message includes institute Intermediate equipment is stated to the outgoing interface of purpose end equipment and the bandwidth information of the outgoing interface, wherein, the outgoing interface is basis What the IP address of the purpose end equipment determined.
- 8. according to the method for claim 7, it is characterised in that the bandwidth request message is ICMP bandwidth request messages, In the IP heads of the ICMP bandwidth requests message, the IP address of the purpose end equipment exists the IP address of the intermediate equipment In the ICMP heads of the ICMP bandwidth requests message.
- 9. according to the method for claim 8, it is characterised in that the bandwidth back message is ICMP bandwidth back messages.
- 10. according to the method for claim 9, it is characterised in thatThe first character section on the ICMP heads of the ICMP bandwidth back message includes the type of the ICMP bandwidth back message, Second byte on the ICMP heads of the ICMP bandwidth back message includes the code of the ICMP bandwidth back message, described The verification of third and fourth byte on the ICMP heads of ICMP bandwidth back messages including the ICMP bandwidth back message and, 5th and the 6th byte on the ICMP heads of the ICMP bandwidth back message includes the mark of the ICMP bandwidth back message Know symbol, the 7th and the 8th byte on the ICMP heads of the ICMP bandwidth back message includes the ICMP bandwidth back message Sequence number, after the 8th byte on the ICMP heads of the ICMP bandwidth back message, every four bytes are distinguished in order The mark ID of m-th of outgoing interface including the intermediate equipment, m-th of outgoing interface input direction and outbound course band Wide information, wherein, m is natural number.
- 11. according to the method for claim 10, it is characterised in that the type of the ICMP bandwidth back message is 16, institute The code for stating ICMP bandwidth back messages is 0.
- 12. a kind of equipment for obtaining bandwidth information, it is characterised in that the equipment includes:First sending module and first receives Module;First sending module is used to ask to the n intermediate equipment transmission bandwidth between the equipment and purpose end equipment Message, wherein, the destination address of the bandwidth request message is the IP address of n intermediate equipment, the bandwidth request message The IP address of purpose end equipment is also carried, n is natural number;First receiving module is used in first sending module into n-th between the equipment and purpose end equipment Between after equipment transmission bandwidth request message, receive the bandwidth back message from n intermediate equipment, obtain n intermediate and set The bandwidth information of the standby outgoing interface and the outgoing interface for arriving purpose end equipment.
- 13. equipment according to claim 12, it is characterised in that the bandwidth request message is that the Internet network controls message Agreement ICMP bandwidth request messages, the IP address of the n intermediate equipment is on the IP heads of the ICMP bandwidth requests message In, the IP address of the purpose end equipment is in the ICMP heads of the ICMP bandwidth requests message.
- 14. equipment according to claim 13, it is characterised in thatThe first character section on the ICMP heads of the ICMP bandwidth requests message includes the type of the ICMP bandwidth requests message, Second byte on the ICMP heads of the ICMP bandwidth requests message includes the code of the icmp packet, the ICMP bandwidth Third and fourth byte on the ICMP heads of request message includes the verification of the icmp packet and the ICMP bandwidth requests 5th and the 6th byte on the ICMP heads of message includes the identifier of the icmp packet, the ICMP bandwidth requests message The the 7th and the 8th byte on ICMP heads include the sequence number of the icmp packet, the ICMP bandwidth requests message 9th to the 12nd byte on ICMP heads includes the IP address of the purpose end equipment.
- 15. equipment according to claim 14, it is characterised in that the type of the ICMP bandwidth requests message is 15, institute The code for stating ICMP bandwidth request messages is 0.
- 16. equipment according to claim 12, it is characterised in that the bandwidth back message is that ICMP bandwidth responds report Text.
- 17. the equipment according to any one of claim 12 to 16, it is characterised in that the equipment also includes:Second hair Send module and the second receiving module;Second sending module is used to send internet to the purpose end equipment according to the IP address of the purpose end equipment Network agreement life span TTL is n ping request messages;Second receiving module is used for please to the purpose end equipment transmission TTL ping for being n in second sending module After seeking message, the TTL timeout packets from n intermediate equipment are received, obtain the IP address of n intermediate equipment.
- 18. a kind of equipment for obtaining bandwidth information, it is characterised in that the equipment includes:Receiving module and sending module;The receiving module is used to receive the bandwidth request message from originator device, wherein, the bandwidth request message Destination address is the IP address of intermediate equipment, and the bandwidth request message also carries the IP address of purpose end equipment;The sending module is used for after the receiving module receives the bandwidth request message from originator device, to the beginning Inchoation equipment transmission bandwidth back message, wherein, the bandwidth back message includes the intermediate equipment to purpose end equipment The bandwidth information of outgoing interface and the outgoing interface, wherein, the outgoing interface is true according to the IP address of the purpose end equipment Fixed.
- 19. equipment according to claim 18, it is characterised in that the bandwidth request message is ICMP bandwidth request reports Text, the IP address of the intermediate equipment is in the IP heads of the ICMP bandwidth requests message, the IP of the purpose end equipment Location is in the ICMP heads of the ICMP bandwidth requests message.
- 20. equipment according to claim 19, it is characterised in that the bandwidth back message is that ICMP bandwidth responds report Text.
- 21. equipment according to claim 20, it is characterised in thatThe first character section on the ICMP heads of the ICMP bandwidth back message includes the type of the ICMP bandwidth back message, Second byte on the ICMP heads of the ICMP bandwidth back message includes the code of the ICMP bandwidth back message, described The verification of third and fourth byte on the ICMP heads of ICMP bandwidth back messages including the ICMP bandwidth back message and, 5th and the 6th byte on the ICMP heads of the ICMP bandwidth back message includes the mark of the ICMP bandwidth back message Know symbol, the 7th and the 8th byte on the ICMP heads of the ICMP bandwidth back message includes the ICMP bandwidth back message Sequence number, after the 8th byte on the ICMP heads of the ICMP bandwidth back message, every four bytes are distinguished in order The mark ID of m-th of outgoing interface including the intermediate equipment, m-th of outgoing interface input direction and outbound course band Wide information, wherein, m is natural number.
- 22. equipment according to claim 21, it is characterised in that the type of the ICMP bandwidth back message is 16, institute The code for stating ICMP bandwidth back messages is 0.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210369914.6A CN103701626B (en) | 2012-09-27 | 2012-09-27 | The preparation method of bandwidth information and the equipment for obtaining bandwidth information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210369914.6A CN103701626B (en) | 2012-09-27 | 2012-09-27 | The preparation method of bandwidth information and the equipment for obtaining bandwidth information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103701626A CN103701626A (en) | 2014-04-02 |
CN103701626B true CN103701626B (en) | 2018-01-19 |
Family
ID=50363029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210369914.6A Active CN103701626B (en) | 2012-09-27 | 2012-09-27 | The preparation method of bandwidth information and the equipment for obtaining bandwidth information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103701626B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107508762A (en) * | 2017-08-17 | 2017-12-22 | 迈普通信技术股份有限公司 | Network traffics transmission method and source device |
CN109995664B (en) | 2017-12-29 | 2022-04-05 | 华为技术有限公司 | Method, equipment and system for transmitting data stream |
WO2020042018A1 (en) | 2018-08-29 | 2020-03-05 | 华为技术有限公司 | Method for detecting bandwidth and detection device |
CN111787593B (en) * | 2019-04-03 | 2022-08-30 | 大唐移动通信设备有限公司 | Data transmission method and node |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075918A (en) * | 2006-05-15 | 2007-11-21 | 中兴通讯股份有限公司 | Method for inspecting network band width |
CN101667890A (en) * | 2009-09-24 | 2010-03-10 | 深圳市普联技术有限公司 | Network bandwidth detecting method and system |
US20100322249A1 (en) * | 2009-06-23 | 2010-12-23 | Juniper Networks, Inc. | Discovering path maximum transmission unit size |
-
2012
- 2012-09-27 CN CN201210369914.6A patent/CN103701626B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075918A (en) * | 2006-05-15 | 2007-11-21 | 中兴通讯股份有限公司 | Method for inspecting network band width |
US20100322249A1 (en) * | 2009-06-23 | 2010-12-23 | Juniper Networks, Inc. | Discovering path maximum transmission unit size |
CN101667890A (en) * | 2009-09-24 | 2010-03-10 | 深圳市普联技术有限公司 | Network bandwidth detecting method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103701626A (en) | 2014-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100544295C (en) | Multicast routing method and device | |
CN101903872B (en) | Method for determining network proximity for global traffic load balancing using passive TCP performance instrumentation | |
CN101272291B (en) | Network appliance testing method and system | |
CN106067854B (en) | A kind of network quality detection method and equipment | |
EP3496346B1 (en) | Data message forwarding method and apparatus | |
CN101616029B (en) | Method and system for realizing network topology discovery | |
CN103259809A (en) | Load balancer, load balancing method and stratified data center system | |
CN102882781B (en) | Method, route bridge and system for transmitting message | |
CN102845123A (en) | Virtual private cloud connection method and tunnel proxy server | |
CN103701626B (en) | The preparation method of bandwidth information and the equipment for obtaining bandwidth information | |
CN102185766A (en) | Unicast forwarding method and forwarding equipment for responding messages by DHCP (Dynamic host configuration protocol) server | |
CN102739541A (en) | Method, device and system for starting routing function and transmitting data | |
CN102404195A (en) | Data transmission method, gateway and network system | |
CN109728962A (en) | A kind of method and apparatus sending message | |
CN101547063A (en) | Method and system for testing forward delay | |
CN102802227A (en) | Data processing method, equipment and system based on base station direct connection framework | |
CN102594672A (en) | Method and system applicable to high-quality internet communication in low-reliability network environment | |
CN107547346A (en) | A kind of message transmitting method and device | |
CN106550058A (en) | Network address translation penetration method and system using same | |
CN104754521B (en) | A kind of message forwarding method, wireless access point, wireless controller and system | |
CN107332744B (en) | Routing path selection method and system and user access server | |
CN106572016A (en) | Path calculation method and device | |
CN110519103A (en) | A kind of Fault Locating Method of heterogeneous network, device and terminal | |
CN102387516B (en) | PS operation analog system and test method for NodeB test | |
CN110740455B (en) | Networking method, network and transmission method based on WISUN communication technology |
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 |