CN103701626A - Method and equipment for acquiring bandwidth information - Google Patents
Method and equipment for acquiring bandwidth information Download PDFInfo
- Publication number
- CN103701626A CN103701626A CN201210369914.6A CN201210369914A CN103701626A CN 103701626 A CN103701626 A CN 103701626A CN 201210369914 A CN201210369914 A CN 201210369914A CN 103701626 A CN103701626 A CN 103701626A
- Authority
- CN
- China
- Prior art keywords
- icmp
- bandwidth
- equipment
- request 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000002360 preparation method Methods 0.000 claims description 16
- 238000012795 verification Methods 0.000 claims description 14
- 238000012423 maintenance Methods 0.000 abstract description 3
- 230000004044 response Effects 0.000 abstract description 2
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a method and equipment for acquiring bandwidth information. The method comprises the following steps: originating terminal equipment transmits a bandwidth request message to the nth middle equipment between the originating terminal equipment and destination terminal equipment, wherein the destination address of the bandwidth request message is an IP (Internet Protocol) address of the nth middle equipment; the bandwidth request message also carries the IP address of the destination terminal equipment, and n is a natural number; the originating terminal equipment receives a bandwidth response message from the nth middle equipment, and acquires the bandwidth information from the nth middle equipment to an output interface and the bandwidth information of the output interface. Through the mode, the bandwidth information of the end-to-end middle equipment can be visibly obtained in real time, the operation and maintenance efficiency is improved, and the operation is simple.
Description
Technical field
The present invention relates to internet technique field, particularly relate to a kind of preparation method of bandwidth information and the equipment that obtains bandwidth information.
Background technology
In prior art, device A plan newly increases a kind of business, and the bandwidth from device A to equipment B service traffics needs 100M.Now, whether device A has 100M to the remaining bandwidth of equipment B, needs real-time query device A to the remaining bandwidth of network between equipment B.In addition, have various horizontal flows and longitudinal flow in network, whether network there is congested risk, and network maintenance staff, in regular maintenance, need to inquire about the real-time bandwidth information of (route intercommunication between prerequisite two ends) between any two ends.When in network, a certain business has packet drop, the first step first positioning is: it is congested whether investigation network has, and need to all forward-paths, investigate end to end.
For demand above, a kind of method is, by webmaster point, bandwidth information by link query facility A to equipment B section by section; Another kind method is, logging device, by order line point, bandwidth information by link query facility A to equipment B section by section.
Summary of the invention
The equipment that embodiment of the present invention provides a kind of preparation method of bandwidth information and obtains bandwidth information, can obtain in real time, intuitively in the bandwidth information of intermediate equipment end to end, improves O&M efficiency, and simple to operate.
First aspect, a kind of preparation method of bandwidth information is provided, comprise: originator device sends bandwidth request message to n intermediate equipment between originator device and destination equipment, wherein, the destination address of described bandwidth request message is the internet network protocol IP address of n intermediate equipment, described bandwidth request message also carries the IP address of destination equipment, and n is natural number; Originator device receives the bandwidth back message using from n intermediate equipment, obtains n intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of described outgoing interface.
The first implementation of first aspect is: described bandwidth request message is internet network Internet Control Message Protocol ICMP bandwidth request message, the IP address of described n intermediate equipment is in the IP head of described ICMP bandwidth request message, and the IP address of described destination equipment is in the ICMP head of described ICMP bandwidth request message.
The second implementation of first aspect is: first byte of the ICMP head of described ICMP bandwidth request message comprises the type of described ICMP bandwidth request message, second byte of the ICMP head of described ICMP bandwidth request message comprises the code of described icmp packet, third and fourth byte of the ICMP head of described ICMP bandwidth request message comprise described icmp packet verification and, the the 5th and the 6th byte of the ICMP head of described ICMP bandwidth request message comprises the identifier of described icmp packet, the the 7th and the 8th byte of the ICMP head of described ICMP bandwidth request message comprises the sequence number of described icmp packet, the the 9th to the 12 byte of the ICMP head of described ICMP bandwidth request message comprises the IP address of described destination equipment.
The third implementation of first aspect is: the type of described ICMP bandwidth request message is 15, and the code of described ICMP bandwidth request message is 0.
The 4th kind of implementation of first aspect is: described bandwidth back message using is ICMP bandwidth back message using.
The 5th kind of implementation of first aspect is: described originator device comprises before sending bandwidth request message to n intermediate equipment between originator device and destination equipment: described originator device sends to destination equipment the Internet packets survey meter ping request message that internet network agreement life span TTL is n according to the IP address of destination equipment; Described originator device receives the TTL timeout packet from n intermediate equipment, obtains the IP address of n intermediate equipment.
Second aspect, the preparation method that a kind of bandwidth information is provided, comprising: intermediate equipment receives the bandwidth request message from originator device, wherein, the destination address of described bandwidth request message is the IP address of described intermediate equipment, and described bandwidth request message also carries the IP address of destination equipment; Described intermediate equipment sends bandwidth back message using to described originator device, wherein, described bandwidth back message using comprises that described intermediate equipment is to the outgoing interface of destination equipment and the bandwidth information of described outgoing interface, and wherein, described outgoing interface is to determine according to the IP address of described destination equipment.
The first implementation of second aspect is: described bandwidth request message is ICMP bandwidth request message, the IP address of described intermediate equipment is in the IP head of described ICMP bandwidth request message, and the IP address of described destination equipment is in the ICMP head of described ICMP bandwidth request message.
The second implementation of second aspect is: described bandwidth back message using is ICMP bandwidth back message using.
The third implementation of second aspect is: first byte of the ICMP head of described ICMP bandwidth back message using comprises the type of described ICMP bandwidth back message using, second byte of the ICMP head of described ICMP bandwidth back message using comprises the code of described ICMP bandwidth back message using, third and fourth byte of the ICMP head of described ICMP bandwidth back message using comprise described ICMP bandwidth back message using verification and, the the 5th and the 6th byte of the ICMP head of described ICMP bandwidth back message using comprises the identifier of described ICMP bandwidth back message using, the the 7th and the 8th byte of the ICMP head of described ICMP bandwidth back message using comprises the sequence number of described ICMP bandwidth back message using, after the 8th byte of the ICMP head of described ICMP bandwidth back message using, every four bytes comprise respectively the sign ID of m outgoing interface of described intermediate equipment in order, the bandwidth information of described m outgoing interface input direction and outbound course, wherein, m is natural number.
The 4th kind of implementation of second aspect is: the type of described ICMP bandwidth back message using is 16, and the code of described ICMP bandwidth back message using is 0.
The third aspect, provides a kind of equipment that obtains bandwidth information, and described equipment comprises: the first sending module and the first receiver module; Described the first sending module sends bandwidth request message for n the intermediate equipment between described equipment and destination equipment, wherein, the destination address of described bandwidth request message is the IP address of n intermediate equipment, described bandwidth request message also carries the IP address of destination equipment, and n is natural number; Described the first receiver module is for sending after bandwidth request message to n intermediate equipment between described equipment and destination equipment at described the first sending module, reception, from the bandwidth back message using of n intermediate equipment, obtains n intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of described outgoing interface.
The first implementation of the third aspect is: described bandwidth request message is internet network Internet Control Message Protocol ICMP bandwidth request message, the IP address of described n intermediate equipment is in the IP head of described ICMP bandwidth request message, and the IP address of described destination equipment is in the ICMP head of described ICMP bandwidth request message.
The second implementation of the third aspect is: first byte of the ICMP head of described ICMP bandwidth request message comprises the type of described ICMP bandwidth request message, second byte of the ICMP head of described ICMP bandwidth request message comprises the code of described icmp packet, third and fourth byte of the ICMP head of described ICMP bandwidth request message comprise described icmp packet verification and, the the 5th and the 6th byte of the ICMP head of described ICMP bandwidth request message comprises the identifier of described icmp packet, the the 7th and the 8th byte of the ICMP head of described ICMP bandwidth request message comprises the sequence number of described icmp packet, the the 9th to the 12 byte of the ICMP head of described ICMP bandwidth request message comprises the IP address of described destination equipment.
The third implementation of the third aspect is: the type of described ICMP bandwidth request message is 15, and the code of described ICMP bandwidth request message is 0.
The 4th kind of implementation of the third aspect is: described bandwidth back message using is ICMP bandwidth back message using.
The 5th kind of implementation of the third aspect is: described equipment also comprises: the second sending module and the second receiver module; Described the second sending module is for sending to described destination equipment the Internet packets survey meter ping request message that TTL is n according to the IP address of described destination equipment; Described the second receiver module, for sending after the ping request message that TTL is n to described destination equipment at described the second sending module, receives the TTL timeout packet from n intermediate equipment, obtains the IP address of n intermediate equipment.
Fourth aspect, provides a kind of equipment that obtains bandwidth information, and described equipment comprises: receiver module and sending module; Described receiver module is for receiving the bandwidth request message from originator device, and wherein, the destination address of described bandwidth request message is the IP address of described intermediate equipment, and described bandwidth request message also carries the IP address of destination equipment; Described sending module is for receiving after the bandwidth request message from originator device at described receiver module, to described originator device, send bandwidth back message using, wherein, described bandwidth back message using comprises that described intermediate equipment is to the outgoing interface of destination equipment and the bandwidth information of described outgoing interface, wherein, described outgoing interface is to determine according to the IP address of described destination equipment.
The first implementation of fourth aspect is: described bandwidth request message is ICMP bandwidth request message, the IP address of described intermediate equipment is in the IP head of described ICMP bandwidth request message, and the IP address of described destination equipment is in the ICMP head of described ICMP bandwidth request message.
The second implementation of fourth aspect is: described bandwidth back message using is ICMP bandwidth back message using.
The third implementation of fourth aspect is: first byte of the ICMP head of described ICMP bandwidth back message using comprises the type of described ICMP bandwidth back message using, second byte of the ICMP head of described ICMP bandwidth back message using comprises the code of described ICMP bandwidth back message using, third and fourth byte of the ICMP head of described ICMP bandwidth back message using comprise described ICMP bandwidth back message using verification and, the the 5th and the 6th byte of the ICMP head of described ICMP bandwidth back message using comprises the identifier of described ICMP bandwidth back message using, the the 7th and the 8th byte of the ICMP head of described ICMP bandwidth back message using comprises the sequence number of described ICMP bandwidth back message using, after the 8th byte of the ICMP head of described ICMP bandwidth back message using, every four bytes comprise respectively the sign ID of m outgoing interface of described intermediate equipment in order, the bandwidth information of described m outgoing interface input direction and outbound course, wherein, m is natural number.
The 4th kind of implementation of fourth aspect is: the type of described ICMP bandwidth back message using is 16, and the code of described ICMP bandwidth back message using is 0.
Originator device of the present invention sends bandwidth request message to intermediate equipment, bandwidth request message is except comprising the IP address of intermediate equipment, also carry the IP address of destination equipment, make intermediate equipment obtain intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface according to the IP address of destination equipment, then originator device receives the bandwidth back message using of intermediate equipment, obtains the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can obtain in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
Accompanying drawing explanation
Fig. 1 is the network topology schematic diagram between device A and equipment B in the internet in one embodiment of the present invention;
Fig. 2 is the flow chart of preparation method one execution mode of bandwidth information of the present invention;
Fig. 3 is the flow chart of another execution mode of preparation method of bandwidth information of the present invention;
Fig. 4 is the flow chart of the another execution mode of preparation method of bandwidth information of the present invention;
Fig. 5 is the flow chart of the another execution mode of preparation method of bandwidth information of the present invention;
Fig. 6 is the structural representation that the present invention obtains equipment one execution mode of bandwidth information;
Fig. 7 is the structural representation that the present invention obtains another execution mode of equipment of bandwidth information;
Fig. 8 is the structural representation that the present invention obtains the another execution mode of equipment of bandwidth information;
Fig. 9 is the structural representation that the present invention obtains the another execution mode of equipment of bandwidth information;
Figure 10 is the structural representation that the present invention obtains device one execution mode of bandwidth information;
Figure 11 is the structural representation that the present invention obtains another execution mode of device of bandwidth information.
Embodiment
Consult Fig. 1, Fig. 1 is the network topology schematic diagram between device A and equipment B in internet in an embodiment of the present invention, as shown in the figure, from device A 11, to equipment B 12, there is a lot of intermediate equipments, in network management, need to obtain device A 11 to each intermediate equipment between equipment B 12 or the bandwidth information of certain intermediate equipment, thereby need real-time query device A 11 to the bandwidth information of the intermediate equipment between equipment B 12.
Present inventor finds in the long-term R & D of this area, and in the prior art, query facility A11 is to the bandwidth information of the intermediate equipment between equipment B 12, all lose time very much, directly perceived not, O&M efficiency is low, and need to be familiar with network topology, for operative employee's technical ability, have relatively high expectations.
The equipment that embodiment of the present invention provides a kind of preparation method of bandwidth information and obtains bandwidth information, can obtain in real time, intuitively in the bandwidth information of intermediate equipment end to end, improves O&M efficiency, and simple to operate.Below in conjunction with drawings and embodiments, the present invention is described in detail.
Consult Fig. 2, Fig. 2 is the flow chart of preparation method one execution mode of bandwidth information of the present invention, and present embodiment is the flow chart that originator device obtains bandwidth information, comprising:
Step S101: originator device sends bandwidth request message to n intermediate equipment between originator device and destination equipment, wherein, the destination address of bandwidth request message is the internet network protocol IP address of n intermediate equipment, bandwidth request message also carries the IP address of destination equipment, and n is natural number.
Message is the data cell of exchange and transmission in network, i.e. website, the disposable data block that will send.In message, generally include object IP address, i.e. the IP address of receiving terminal.
Bandwidth request message is the request message that transmitting terminal sends to receiving terminal, request obtains receiving terminal to the bandwidth information of outgoing interface and the outgoing interface of destination equipment, therefore, in bandwidth request message, except object IP address, also must carry the IP address of destination equipment.
Originator device sends bandwidth request message to n intermediate equipment, and the destination address of bandwidth request message is the IP address of n intermediate equipment, and carries the IP address of destination equipment.
Step S102: originator device receives the bandwidth back message using from n intermediate equipment, obtains n intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface.
Originator device sends after bandwidth request message to n intermediate equipment between originator device and destination equipment, n intermediate equipment receives the bandwidth request message that originator device sends, and the IP address of the destination equipment carrying according to bandwidth request message, obtain local (i.e. n intermediate equipment) to the outgoing interface of destination equipment and the bandwidth information of outgoing interface.If more than one of outgoing interface, can also determine the bandwidth information of a plurality of outgoing interfaces and each outgoing interface, can certainly only determine part outgoing interface and corresponding bandwidth information in a plurality of outgoing interfaces.Bandwidth information includes but not limited to: remaining bandwidth information, or dedicated bandwidth information, or bandwidth availability ratio etc.
Originator device of the present invention sends bandwidth request message to intermediate equipment, bandwidth request message is except comprising the IP address of intermediate equipment, also carry the IP address of destination equipment, make intermediate equipment obtain intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface according to the IP address of destination equipment, then originator device receives the bandwidth back message using of intermediate equipment, obtains the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can obtain in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
Consult Fig. 3, Fig. 3 is the flow chart of another execution mode of preparation method of bandwidth information of the present invention, and present embodiment is the flow chart that originator device obtains bandwidth information, comprising:
Step S201: originator device is according to the IP address of destination equipment, and inquiry obtains originator device to outgoing interface and the outgoing interface bandwidth information of destination equipment.
For example, inquiry originator device routing table, the outgoing interface of originator device and the bandwidth information of outgoing interface input and output direction while obtaining originator device to destination equipment, bandwidth information includes but not limited to: remaining bandwidth information or dedicated bandwidth information or bandwidth availability ratio etc.
Routing table is the electrical form (file) or the class database that are stored in router or Net-connected computer, routing table storing point to particular network address path (in some cases, also record the route metric value in path), in routing table, contain the topology information of network perimeter.
In the time of can obtaining originator device to destination equipment by routing table, the outgoing interface of originator device, then inquires about this outgoing interface in the bandwidth information of input and output direction.
If the originator device that inquiry obtains in step S201 is bandwidth availability ratio to the outgoing interface bandwidth information of destination equipment, originator device is according to the bandwidth availability ratio of the originator device outgoing interface input and output direction finding, in the time of can obtaining originator device to destination equipment, the outgoing interface input direction of originator device and the remaining bandwidth information of outbound course:
Wherein, the remaining bandwidth of outgoing interface input direction equals the bandwidth that 1 difference that deducts the bandwidth availability ratio of outgoing interface input direction is multiplied by outgoing interface, be bandwidth * (bandwidth availability ratio of 1-outgoing interface input direction) of the remaining bandwidth=outgoing interface of outgoing interface input direction, the remaining bandwidth of outgoing interface outbound course equals the bandwidth that 1 difference that deducts the bandwidth availability ratio of outgoing interface outbound course is multiplied by outgoing interface, i.e. the bandwidth of the remaining bandwidth=outgoing interface of outgoing interface outbound course * (bandwidth availability ratio of 1-outgoing interface outbound course).
According to the bandwidth availability ratio of the originator device outgoing interface input and output direction finding, in the time of can obtaining originator device to destination equipment, the outgoing interface input direction of originator device and the remaining bandwidth of outbound course.
It is to be noted, step S201 is when originator device requires to obtain the local outgoing interface to destination equipment and outgoing interface bandwidth information, the step of just carrying out, and the sequencing of execution step S201 has no special requirements, can be according to actual conditions, the order that determining step S201 carries out.If originator device does not need to obtain local outgoing interface and outgoing interface bandwidth information to destination equipment, step S201 need not carry out.
Step S202: originator device sends a ping request message that TTL is n according to the IP address of destination equipment to destination equipment.
According to the operation principle of traceroute (Traceroute), request message, through the 1st to n intermediate equipment, n overtime the abandoning of intermediate equipment TTL, and requires n intermediate equipment to respond a TTL timeout packet to originator device.
Traceroute is that route is followed the tracks of utility program, for the path of determining that IP packet access destination is taked.Traceroute order with IP life span (TTL) field and internet network Internet Control Message Protocol (ICMP, internet control message protocol) error message, determine from an equipment to network the route of miscellaneous equipment.The operation principle of Traceroute: by send the ICMP packet of different TTL to target, require each router on path to successively decrease 1 to the TTL on this packet of major general before forwarding data bag, TTL on packet is kept at 0 o'clock, and router should be beamed back source address by the message of " ICMP is overtime "; It is 1 packet that Traceroute first sends TTL, and in each process of transmitting subsequently, TTL is increased progressively to 1, until target response or TTL reach maximum, by checking that the message of " ICMP is overtime " that intermediate router is beamed back determines route.
The Internet packets survey meter (ping, Packet Internet Groper), the program connecting for test network.It is for checking the order of the whether unobstructed or network connection speed of network.The principle that ping utilizes is: utilize the uniqueness of IP address of equipment on network, to target ip address, send a packet, then require the other side to return to an onesize packet to determine whether two network equipments connect and communicate, time delay is how many.
Step S202 sends a ping request message that TTL is n to destination equipment, thus originator device can obtain the IP address of the 1st intermediate equipment or the IP address of the 2nd intermediate equipment ..., or the IP address of n intermediate equipment.
Step S203: originator device receives the TTL timeout packet from n intermediate equipment, obtains the IP address of n intermediate equipment.
According to the operation principle of Traceroute, in originator device, send after the ping request message that a TTL is n, the TTL of n intermediate equipment reception is 1, and the TTL on message is kept at 0 o'clock, and this n intermediate equipment should be beamed back originator device by the message of TTL timeout packet.
It should be noted that, step S202 and step S203 are mainly methods of the originator device IP address that obtains n intermediate equipment, in actual applications, originator device can also be obtained the IP address of n intermediate equipment by other method, at this, no longer go to live in the household of one's in-laws on getting married and chat.
Step S204: originator device, according to the IP address of n intermediate equipment, generates the bandwidth request message sending to n intermediate equipment.
The destination address of bandwidth request message is the IP address of n intermediate equipment, and bandwidth request message also carries the IP address of destination equipment.
Wherein, bandwidth request message is ICMP bandwidth request message, and the IP address of n intermediate equipment is in the IP head of ICMP bandwidth request message, and the IP address of destination equipment is in the ICMP head of ICMP bandwidth request message.
A complete icmp packet comprises: IP head and ICMP head.In ICMP bandwidth request message, IP head is the IP address of n intermediate equipment, and the IP address of destination equipment is in ICMP head.
Particularly, first byte of the ICMP head of ICMP bandwidth request message comprises the type of ICMP bandwidth request message, second byte of the ICMP head of ICMP bandwidth request message comprises the code of icmp packet, third and fourth byte of the ICMP head of ICMP bandwidth request message comprise icmp packet verification and, the the 5th and the 6th byte of the ICMP head of ICMP bandwidth request message comprises the identifier of icmp packet, the the 7th and the 8th byte of the ICMP head of ICMP bandwidth request message comprises the sequence number of icmp packet, the the 9th to the 12 byte of the ICMP head of ICMP bandwidth request message comprises the IP address of destination equipment.
Wherein, the type of ICMP bandwidth request message is that the code of 15, ICMP bandwidth request message is 0.
Referring to table 1, table 1 is the form of ICMP bandwidth request message ICMP head:
Table 1 ICMP bandwidth request message ICMP header format
Certainly, it is to be noted, bandwidth request message is except being ICMP bandwidth request message, also can be that other meets the demands that (destination address that is bandwidth request message is the IP address of n intermediate equipment, and the IP address of carrying destination equipment) bandwidth request message, no longer goes to live in the household of one's in-laws on getting married and chats at this.
Step S205: originator device sends bandwidth request message to n intermediate equipment between originator device and destination equipment, wherein, the destination address of bandwidth request message is the IP address of n intermediate equipment, and bandwidth request message also carries the IP address of destination equipment, and n is natural number.
Originator device, after obtaining the IP address of n intermediate equipment, according to the IP address of this n intermediate equipment, sends a bandwidth request message to n intermediate equipment, and n intermediate equipment is between originator device and destination equipment.
Wherein, bandwidth request message is ICMP bandwidth request message, and the IP address of n intermediate equipment is in the IP head of ICMP bandwidth request message, and the IP address of destination equipment is in the ICMP head of ICMP bandwidth request message.
Step S206: originator device receives the bandwidth back message using from n intermediate equipment, obtains n intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of described outgoing interface.
When the bandwidth request message that originator device sends to n intermediate equipment between originator device and destination equipment in step S205 is ICMP bandwidth request message, in step S206, originator device reception is ICMP bandwidth back message using from the bandwidth back message using of n intermediate equipment.
To sum up, originator device sends bandwidth request message to intermediate equipment, bandwidth request message is except comprising the IP address of intermediate equipment, also carry the IP address of destination equipment, make intermediate equipment obtain intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface according to the IP address of destination equipment, then originator device receives the bandwidth back message using of intermediate equipment, obtains the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can obtain in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
In addition, the type of ICMP bandwidth request message and ICMP bandwidth back message using is respectively 15 and 16, at present, this two type 15 and 16 icmp packet retain, do not use, type of service 15 and 16 in ICMP bandwidth request message and ICMP bandwidth back message using, can make full use of the resource type of existing icmp packet.
And, according to above steps, constantly circulate, until receive the ping back message using from destination equipment, in the time of can obtaining originator device to destination equipment, the outgoing interface of all intermediate equipments and the bandwidth information of described outgoing interface.
Consult Fig. 4, Fig. 4 is the flow chart of the another execution mode of preparation method of bandwidth information of the present invention, and present embodiment is the flow chart that intermediate equipment obtains bandwidth information, comprising:
Step S301: intermediate equipment receives the bandwidth request message from originator device, and wherein, the destination address of bandwidth request message is the IP address of intermediate equipment, and bandwidth request message also carries the IP address of destination equipment.
Originator device sends after bandwidth request message to intermediate equipment, and intermediate equipment receives the bandwidth request message that originator device sends.In this bandwidth request message, destination address is the IP address of this intermediate equipment, and meanwhile, this bandwidth request message also carries the IP address of destination equipment.
Step S302: intermediate equipment sends bandwidth back message using to originator device, wherein, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, and wherein, described outgoing interface is to determine according to the IP address of described destination equipment.
Intermediate equipment judges whether the destination address in this bandwidth request message is the IP address of this intermediate equipment, confirming as while being the IP address of this intermediate equipment, the IP address of the destination equipment that intermediate equipment is carried according to bandwidth request message, obtains local to the outgoing interface of destination equipment and the bandwidth information of outgoing interface.If more than one of outgoing interface, can also determine the bandwidth information of a plurality of outgoing interfaces and each outgoing interface, can certainly only determine part outgoing interface and corresponding bandwidth information in a plurality of outgoing interfaces.Bandwidth information includes but not limited to: remaining bandwidth information, or dedicated bandwidth information, or bandwidth availability ratio.
Intermediate equipment sends bandwidth back message using to originator device, and this bandwidth back message using comprises that intermediate equipment arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, and wherein, outgoing interface is to determine according to the IP address of destination equipment.
Intermediate equipment of the present invention is after the bandwidth request message receiving from originator device, to originator device, send bandwidth back message using, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, thereby be convenient to originator device, to obtain the information of intermediate equipment wide.In this way, can inquire about in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
Consult Fig. 5, Fig. 5 is the flow chart of the another execution mode of preparation method of bandwidth information of the present invention, and present embodiment is the flow chart that intermediate equipment obtains bandwidth information, comprising:
Step S401: intermediate equipment receives the ping request message that TTL is p, and wherein, p is natural number.
Step S402: intermediate equipment, after receiving the ping request message that TTL is p, judges whether p equals 1; If p is greater than 1, intermediate equipment subtracts 1 by TTL, and forwards this ping request message, finishes this flow process simultaneously; If p equals 1, enter step S403.
Step S403: if p equals 1, intermediate equipment sends a TTL timeout packet to originator device.
P equals 1, then subtracts 1, is 0, and now intermediate equipment need to send TTL timeout packet to originator device.
Step S404: intermediate equipment receives the bandwidth request message from originator device, and wherein, the destination address of bandwidth request message is the IP address of intermediate equipment, and bandwidth request message also carries the IP address of destination equipment.
Originator device receives after TTL timeout packet, obtains the IP address of intermediate equipment, and the IP address according to intermediate equipment, sends bandwidth request message again to intermediate equipment, and intermediate equipment receives the bandwidth request message that originator device sends.
Wherein, bandwidth request message is ICMP bandwidth request message, and the IP address of intermediate equipment is in the IP head of ICMP bandwidth request message, and the IP address of destination equipment is in the ICMP head of ICMP bandwidth request message.
Step S405: intermediate equipment is after the destination address of determining bandwidth request message is local IP address, according to the IP address of the destination equipment in the bandwidth request message receiving, inquiry obtains intermediate equipment to outgoing interface and the outgoing interface bandwidth information of destination equipment.
For example, inquiry intermediate equipment routing table, while obtaining intermediate equipment to destination equipment, the bandwidth information of all outgoing interfaces of intermediate equipment and all outgoing interface input and output directions, bandwidth information includes but not limited to: remaining bandwidth information or dedicated bandwidth information or bandwidth availability ratio etc.
If the intermediate equipment that inquiry obtains in step S405 is bandwidth availability ratio to the outgoing interface bandwidth information of destination equipment, intermediate equipment is according to the bandwidth availability ratio of all outgoing interface input and output of the intermediate equipment direction finding, in the time of can obtaining intermediate equipment to destination equipment, all outgoing interface input directions of intermediate equipment and the remaining bandwidth information of outbound course:
Wherein, the remaining bandwidth of each outgoing interface input direction equals the bandwidth that 1 difference that deducts the bandwidth availability ratio of outgoing interface input direction is multiplied by outgoing interface, be bandwidth * (bandwidth availability ratio of 1-outgoing interface input direction) of the remaining bandwidth=outgoing interface of outgoing interface input direction, the remaining bandwidth of each outgoing interface outbound course equals the bandwidth that 1 difference that deducts the bandwidth availability ratio of outgoing interface outbound course is multiplied by outgoing interface, i.e. the bandwidth of the remaining bandwidth=outgoing interface of outgoing interface outbound course * (bandwidth availability ratio of 1-outgoing interface outbound course).
Step S406: intermediate equipment generates the bandwidth back message using sending to originator device, and wherein, bandwidth back message using comprises that intermediate equipment arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment.
In intermediate equipment inquiry, obtain intermediate equipment after the outgoing interface of destination equipment and the bandwidth information of outgoing interface, the bandwidth back message using that generation sends to originator device, the information that this bandwidth back message using comprises is intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface.
Wherein, bandwidth back message using is ICMP bandwidth back message using.First byte of the ICMP head of ICMP bandwidth back message using comprises the type of ICMP bandwidth back message using, second byte of the ICMP head of ICMP bandwidth back message using comprises the code of ICMP bandwidth back message using, third and fourth byte of the ICMP head of ICMP bandwidth back message using comprise ICMP bandwidth back message using verification and, the the 5th and the 6th byte of the ICMP head of ICMP bandwidth back message using comprises the identifier of ICMP bandwidth back message using, the the 7th and the 8th byte of the ICMP head of ICMP bandwidth back message using comprises the sequence number of ICMP bandwidth back message using, after the 8th byte of the ICMP head of ICMP bandwidth back message using, every four bytes comprise respectively the sign ID of m outgoing interface of intermediate equipment in order, the bandwidth information of m outgoing interface input direction and outbound course, wherein, m is natural number.
Further, the type of ICMP bandwidth back message using is that the code of 16, ICMP bandwidth back message using is 0.
Consult table 2, table 2 is forms of ICMP bandwidth back message using ICMP head:
The form of table 2 ICMP bandwidth back message using ICMP head
Step S407: intermediate equipment sends bandwidth back message using to originator device, wherein, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, and wherein, outgoing interface is to determine according to the IP address of destination equipment.
Intermediate equipment receives after the bandwidth request message of originator device transmission, according to this bandwidth request message, to originator device, send bandwidth back message using, this bandwidth back message using comprises when intermediate equipment arrives destination equipment, all outgoing interfaces of intermediate equipment and the bandwidth information of outgoing interface, wherein, outgoing interface is to determine according to the IP address of destination equipment.
Wherein, when bandwidth request message is ICMP bandwidth request message, bandwidth back message using is ICMP bandwidth back message using.
Intermediate equipment of the present invention is after the bandwidth request message receiving from originator device, to originator device, send bandwidth back message using, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, thereby be convenient to originator device, to obtain the information of intermediate equipment wide.In this way, can inquire about in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
Consult Fig. 6, Fig. 6 is the structural representation that the present invention obtains equipment one execution mode of bandwidth information, and present embodiment is the equipment that originating terminal obtains bandwidth information.
Alternatively, the equipment of the acquisition bandwidth information shown in Fig. 6 can be realized the operation of the originator device in execution mode as shown in Figure 2 or Figure 3.
Alternatively, the equipment of acquisition bandwidth information as shown in Figure 6 comprises: the first sending module 101 and the first receiver module 102.
The first sending module 101 sends bandwidth request message for n the intermediate equipment between this equipment and destination equipment, wherein, the destination address of bandwidth request message is the internet network protocol IP address of n intermediate equipment, bandwidth request message also carries the IP address of destination equipment, and n is natural number.
Bandwidth request message is the request message that transmitting terminal sends to receiving terminal, request obtains receiving terminal to the bandwidth information of outgoing interface and the outgoing interface of destination equipment, therefore, in bandwidth request message, except object IP address, also must carry the IP address of destination equipment.
Originator device sends bandwidth request message to n intermediate equipment, and the destination address of bandwidth request message is the IP address of n intermediate equipment, and carries the IP address of destination equipment.
The first receiver module 102 is for sending after bandwidth request message to n intermediate equipment between this equipment and destination equipment at the first sending module 101, reception, from the bandwidth back message using of n intermediate equipment, obtains n intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface.
Originator device sends after bandwidth request message to n intermediate equipment between originator device and destination equipment, n intermediate equipment receives the bandwidth request message that originator device sends, and the IP address of the destination equipment carrying according to bandwidth request message, obtain local (i.e. n intermediate equipment) to the outgoing interface of destination equipment and the bandwidth information of outgoing interface.If more than one of outgoing interface, obtains the bandwidth information of a plurality of outgoing interfaces and each outgoing interface.Bandwidth information includes but not limited to: remaining bandwidth information or dedicated bandwidth information or bandwidth availability ratio.
Originator device of the present invention sends bandwidth request message to intermediate equipment, bandwidth request message is except comprising the IP address of intermediate equipment, also carry the IP address of destination equipment, make intermediate equipment obtain intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface according to the IP address of destination equipment, then originator device receives the bandwidth back message using of intermediate equipment, obtains the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can obtain in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
Consult Fig. 7, Fig. 7 is the structural representation that the present invention obtains another execution mode of equipment of bandwidth information, present embodiment is the equipment that originating terminal obtains bandwidth information, and this equipment comprises: bandwidth obtains module 201, the first sending module 202, the first receiver module 203, the second sending module 204, the second receiver module 205 and message generation module 206.
Bandwidth obtains module 201 for according to the IP address of destination equipment, inquires about and obtains originator device to outgoing interface and the outgoing interface bandwidth information of destination equipment.
The second sending module 204 is for sending a ping request message that TTL is n according to the IP address of destination equipment to destination equipment.
The TTL timeout packet that the second receiver module 205 receives from n intermediate equipment, obtains the IP address of n intermediate equipment, and to message generation module 206, sends the IP address of n intermediate equipment.
The destination address of bandwidth request message is the IP address of n intermediate equipment, and bandwidth request message also carries the IP address of destination equipment.
Wherein, bandwidth request message is ICMP bandwidth request message, and the IP address of n intermediate equipment is in the IP head of ICMP bandwidth request message, and the IP address of destination equipment is in the ICMP head of ICMP bandwidth request message.
A complete icmp packet comprises: IP head and ICMP head.In ICMP bandwidth request message, IP head is the IP address of n intermediate equipment, and the IP address of destination equipment is in ICMP head.
Particularly, first byte of the ICMP head of ICMP bandwidth request message comprises the type of ICMP bandwidth request message, second byte of the ICMP head of ICMP bandwidth request message comprises the code of icmp packet, third and fourth byte of the ICMP head of ICMP bandwidth request message comprise icmp packet verification and, the the 5th and the 6th byte of the ICMP head of ICMP bandwidth request message comprises the identifier of icmp packet, the the 7th and the 8th byte of the ICMP head of ICMP bandwidth request message comprises the sequence number of icmp packet, the the 9th to the 12 byte of the ICMP head of ICMP bandwidth request message comprises the IP address of destination equipment.
Wherein, the type of ICMP bandwidth request message is that the code of 15, ICMP bandwidth request message is 0.
The bandwidth request message that the first sending module 202 sends for receiving message generation module 206, to n intermediate equipment between this equipment and destination equipment, send bandwidth request message, wherein, the destination address of bandwidth request message is the IP address of n intermediate equipment, bandwidth request message also carries the IP address of destination equipment, and n is natural number.
The first receiver module 203 is for sending after bandwidth request message to n intermediate equipment between this equipment and destination equipment at the first sending module 202, reception, from the bandwidth back message using of n intermediate equipment, obtains n intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface.
When bandwidth request message is ICMP bandwidth request message, bandwidth back message using is ICMP bandwidth back message using.
In a word, originator device of the present invention sends bandwidth request message to intermediate equipment, bandwidth request message is except comprising the IP address of intermediate equipment, also carry the IP address of destination equipment, make intermediate equipment obtain intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface according to the IP address of destination equipment, then originator device receives the bandwidth back message using of intermediate equipment, obtains the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can obtain in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
In addition, the type of ICMP bandwidth request message and ICMP bandwidth back message using is respectively 15 and 16, at present, this two type 15 and 16 icmp packet retain, do not use, type of service 15 and 16 in ICMP bandwidth request message and ICMP bandwidth back message using, can make full use of the resource type of existing icmp packet.
And, when the present invention can obtain originator device to destination equipment, the outgoing interface of all intermediate equipments and the bandwidth information of described outgoing interface.
Consult Fig. 8, Fig. 8 is the structural representation that the present invention obtains the another execution mode of equipment of bandwidth information, and present embodiment is the intermediate equipment that obtains bandwidth information.
Alternatively, the intermediate equipment shown in Fig. 8 can realize the operation of the intermediate equipment in the execution mode as shown in Fig. 4 or Fig. 5.
Alternatively, the equipment of acquisition bandwidth information as shown in Figure 8 comprises: receiver module 301 and sending module 302.
Sending module 302 is for after the bandwidth request message of receiver module 301 receptions from originator device, to originator device, send bandwidth back message using, wherein, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, and outgoing interface is to determine according to the IP address of destination equipment.
Intermediate equipment of the present invention is after the bandwidth request message receiving from originator device, to originator device, send bandwidth back message using, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, thereby be convenient to originator device, to obtain the information of intermediate equipment wide.In this way, can inquire about in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
Participate in Fig. 9, Fig. 9 is the structural representation that the present invention obtains the another execution mode of equipment of bandwidth information, present embodiment is the intermediate equipment that obtains bandwidth information, and this equipment comprises: the first receiver module 401, judge module 402, the first sending module 403, receiver module 404, bandwidth obtain module 405, message generation module 406 and sending module 407.
The first receiver module 401 is for receiving the ping request message that TTL is p,, wherein, p is natural number, and the ping request message that is p by TTL sends to judge module 402.
The first sending module 403, for receiving the judged result of judge module 402, equals at 1 o'clock at p, to originator device, sends a TTL timeout packet.
Bandwidth obtains module 405 for receiving the bandwidth request message from receiver module 404, after the destination address of determining bandwidth request message is local IP address, according to the IP address of the destination equipment in the bandwidth request message receiving, inquiry obtains intermediate equipment to outgoing interface and the outgoing interface bandwidth information of destination equipment, and the intermediate equipment obtaining to the 406 transmission inquiries of message generation module is to outgoing interface and the outgoing interface bandwidth information of destination equipment.
For example, inquiry intermediate equipment routing table, while obtaining intermediate equipment to destination equipment, the bandwidth information of all outgoing interfaces of intermediate equipment and all outgoing interface input and output directions, bandwidth information includes but not limited to: remaining bandwidth information or dedicated bandwidth information or bandwidth availability ratio etc.If the intermediate equipment that inquiry obtains is bandwidth availability ratio to the outgoing interface bandwidth information of destination equipment, according to bandwidth availability ratio, in the time of can obtaining this equipment to destination equipment, all outgoing interface input directions of this equipment and the remaining bandwidth information of outbound course:
Wherein, the remaining bandwidth of each outgoing interface input direction equals the bandwidth that 1 difference that deducts the bandwidth availability ratio of outgoing interface input direction is multiplied by outgoing interface, be bandwidth * (bandwidth availability ratio of 1-outgoing interface input direction) of the remaining bandwidth=outgoing interface of outgoing interface input direction, the remaining bandwidth of each outgoing interface outbound course equals the bandwidth that 1 difference that deducts the bandwidth availability ratio of outgoing interface outbound course is multiplied by outgoing interface, i.e. the bandwidth of the remaining bandwidth=outgoing interface of outgoing interface outbound course * (bandwidth availability ratio of 1-outgoing interface outbound course).
When message generation module 406 obtains for receiving bandwidth this equipment that module 405 sends to destination equipment, all outgoing interface input directions of this equipment and the bandwidth information of outbound course, the bandwidth back message using that generation sends to originator device, wherein, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, and this bandwidth back message using is sent to sending module 407.
Wherein, bandwidth back message using is ICMP bandwidth back message using.First byte of the ICMP head of ICMP bandwidth back message using comprises the type of ICMP bandwidth back message using, second byte of the ICMP head of ICMP bandwidth back message using comprises the code of ICMP bandwidth back message using, third and fourth byte of the ICMP head of ICMP bandwidth back message using comprise ICMP bandwidth back message using verification and, the the 5th and the 6th byte of the ICMP head of ICMP bandwidth back message using comprises the identifier of ICMP bandwidth back message using, the the 7th and the 8th byte of the ICMP head of ICMP bandwidth back message using comprises the sequence number of ICMP bandwidth back message using, after the 8th byte of the ICMP head of ICMP bandwidth back message using, every four bytes comprise respectively the sign ID of m outgoing interface of intermediate equipment in order, the bandwidth information of m outgoing interface input direction and outbound course, wherein, m is natural number.
Further, the type of ICMP bandwidth back message using is that the code of 16, ICMP bandwidth back message using is 0.
Sending module 407 is for after receiving the bandwidth back message using of message generation module 406 transmissions, to originator device, send bandwidth back message using, wherein, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, and outgoing interface is to determine according to the IP address of destination equipment.
Wherein, when bandwidth request message is ICMP bandwidth request message, bandwidth back message using is ICMP bandwidth back message using.
Intermediate equipment of the present invention is after the bandwidth request message receiving from originator device, to originator device, send bandwidth back message using, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, thereby be convenient to originator device, to obtain the information of intermediate equipment wide.In this way, can inquire about in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
Consult Figure 10, Figure 10 is the structural representation that the present invention obtains device one execution mode of bandwidth information, and present embodiment is the device that originating terminal obtains bandwidth information, and this device comprises: transmitter 11, receiver 12 and processor 13.Described transmitter 11, receiver 12 and processor 13 cooperatively interact, and realize the operation of the originator device in execution mode as shown in Figure 2 or Figure 3.
Alternatively, processor 13 sends bandwidth request message for controlling transmitter 11 to n intermediate equipment between originator device and destination equipment, wherein, the destination address of bandwidth request message is the internet network protocol IP address of n intermediate equipment, bandwidth request message also carries the IP address of destination equipment, and n is natural number; Control the bandwidth back message using that receiver 12 receives from n intermediate equipment, obtain n intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface.
Wherein, bandwidth request message is internet network Internet Control Message Protocol ICMP bandwidth request message, and the IP address of n intermediate equipment is in the IP head of ICMP bandwidth request message, and the IP address of destination equipment is in the ICMP head of ICMP bandwidth request message.
Wherein, first byte of the ICMP head of ICMP bandwidth request message comprises the type of ICMP bandwidth request message, second byte of the ICMP head of ICMP bandwidth request message comprises the code of icmp packet, third and fourth byte of the ICMP head of ICMP bandwidth request message comprise icmp packet verification and, the the 5th and the 6th byte of the ICMP head of ICMP bandwidth request message comprises the identifier of icmp packet, the the 7th and the 8th byte of the ICMP head of ICMP bandwidth request message comprises the sequence number of icmp packet, the the 9th to the 12 byte of the ICMP head of ICMP bandwidth request message comprises the IP address of destination equipment.
Wherein, the type of ICMP bandwidth request message is that the code of 15, ICMP bandwidth request message is 0.
Originator device of the present invention sends bandwidth request message to intermediate equipment, bandwidth request message is except comprising the IP address of intermediate equipment, also carry the IP address of destination equipment, make intermediate equipment obtain intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of outgoing interface according to the IP address of destination equipment, then originator device receives the bandwidth back message using of intermediate equipment, obtains the outgoing interface of intermediate equipment and the bandwidth information of outgoing interface.In this way, can obtain in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
Consult Figure 11, Figure 11 is the structural representation that the present invention obtains another execution mode of device of bandwidth information, and present embodiment obtains the device of bandwidth information in the middle of being, this device comprises: receiver 21, transmitter 22 and processor 23.Described receiver 21, transmitter 22 and processor 23 cooperatively interact, and realize the operation of the intermediate equipment in the embodiment as shown in Fig. 4 or Fig. 5.
Alternatively, the bandwidth request message that processor 23 receives from originator device for controlling receiver 21, wherein, the destination address of bandwidth request message is the IP address of intermediate equipment, bandwidth request message also carries the IP address of destination equipment; Processor 23 is controlled transmitter 22 and is sent bandwidth back message using to originator device, and wherein, bandwidth back message using comprises that intermediate equipment arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, and outgoing interface is to determine according to the IP address of destination equipment.
Wherein, bandwidth request message is ICMP bandwidth request message, and the IP address of intermediate equipment is in the IP head of ICMP bandwidth request message, and the IP address of destination equipment is in the ICMP head of ICMP bandwidth request message.
Wherein, bandwidth back message using is ICMP bandwidth back message using.First byte of the ICMP head of ICMP bandwidth back message using comprises the type of ICMP bandwidth back message using, second byte of the ICMP head of ICMP bandwidth back message using comprises the code of ICMP bandwidth back message using, third and fourth byte of the ICMP head of ICMP bandwidth back message using comprise ICMP bandwidth back message using verification and, the the 5th and the 6th byte of the ICMP head of ICMP bandwidth back message using comprises the identifier of ICMP bandwidth back message using, the the 7th and the 8th byte of the ICMP head of ICMP bandwidth back message using comprises the sequence number of ICMP bandwidth back message using, after the 8th byte of the ICMP head of ICMP bandwidth back message using, every four bytes comprise respectively the sign ID of m outgoing interface of intermediate equipment in order, the bandwidth information of m outgoing interface input direction and outbound course, wherein, m is natural number.
Wherein, the type of ICMP bandwidth back message using is that the code of 16, ICMP bandwidth back message using is 0.
Intermediate equipment of the present invention is after the bandwidth request message receiving from originator device, to originator device, send bandwidth back message using, the intermediate equipment that comprises bandwidth back message using arrives the bandwidth information of outgoing interface and the outgoing interface of destination equipment, thereby be convenient to originator device, to obtain the information of intermediate equipment wide.In this way, can inquire about in real time, intuitively the bandwidth information of intermediate equipment end to end, improve O&M efficiency, and simple to operate.
In several execution modes provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiments described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of present embodiment scheme.
In addition, each functional unit in each execution mode of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that the application's technical scheme contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each execution mode of the application.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random AccessMemory), magnetic disc or CDs.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (22)
1. a preparation method for bandwidth information, is characterized in that, comprising:
Originator device sends bandwidth request message to n intermediate equipment between originator device and destination equipment, wherein, the destination address of described bandwidth request message is the internet network protocol IP address of n intermediate equipment, described bandwidth request message also carries the IP address of destination equipment, and n is natural number;
Originator device receives the bandwidth back message using from n intermediate equipment, obtains n intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of described outgoing interface.
2. method according to claim 1, it is characterized in that, described bandwidth request message is internet network Internet Control Message Protocol ICMP bandwidth request message, the IP address of described n intermediate equipment is in the IP head of described ICMP bandwidth request message, and the IP address of described destination equipment is in the ICMP head of described ICMP bandwidth request message.
3. method according to claim 2, is characterized in that,
First byte of the ICMP head of described ICMP bandwidth request message comprises the type of described ICMP bandwidth request message, second byte of the ICMP head of described ICMP bandwidth request message comprises the code of described icmp packet, third and fourth byte of the ICMP head of described ICMP bandwidth request message comprise described icmp packet verification and, the the 5th and the 6th byte of the ICMP head of described ICMP bandwidth request message comprises the identifier of described icmp packet, the the 7th and the 8th byte of the ICMP head of described ICMP bandwidth request message comprises the sequence number of described icmp packet, the the 9th to the 12 byte of the ICMP head of described ICMP bandwidth request message comprises the IP address of described destination equipment.
4. method according to claim 3, is characterized in that, the type of described ICMP bandwidth request message is 15, and the code of described ICMP bandwidth request message is 0.
5. method according to claim 2, is characterized in that, described bandwidth back message using is ICMP bandwidth back message using.
6. according to the method described in any one in claim 1 to 5, it is characterized in that, described originator device comprises before sending bandwidth request message to n intermediate equipment between originator device and destination equipment:
Described originator device sends to destination equipment the Internet packets survey meter ping request message that internet network agreement life span TTL is n according to the IP address of destination equipment;
Described originator device receives the TTL timeout packet from n intermediate equipment, obtains the IP address of n intermediate equipment.
7. a preparation method for bandwidth information, is characterized in that, comprising:
Intermediate equipment receives the bandwidth request message from originator device, and wherein, the destination address of described bandwidth request message is the IP address of described intermediate equipment, and described bandwidth request message also carries the IP address of destination equipment;
Described intermediate equipment sends bandwidth back message using to described originator device, wherein, described bandwidth back message using comprises that described intermediate equipment is to the outgoing interface of destination equipment and the bandwidth information of described outgoing interface, and wherein, described outgoing interface is to determine according to the IP address of described destination equipment.
8. method according to claim 7, it is characterized in that, described bandwidth request message is ICMP bandwidth request message, the IP address of described intermediate equipment is in the IP head of described ICMP bandwidth request message, and the IP address of described destination equipment is in the ICMP head of described ICMP bandwidth request message.
9. method according to claim 8, is characterized in that, described bandwidth back message using is ICMP bandwidth back message using.
10. method according to claim 9, is characterized in that,
First byte of the ICMP head of described ICMP bandwidth back message using comprises the type of described ICMP bandwidth back message using, second byte of the ICMP head of described ICMP bandwidth back message using comprises the code of described ICMP bandwidth back message using, third and fourth byte of the ICMP head of described ICMP bandwidth back message using comprise described ICMP bandwidth back message using verification and, the the 5th and the 6th byte of the ICMP head of described ICMP bandwidth back message using comprises the identifier of described ICMP bandwidth back message using, the the 7th and the 8th byte of the ICMP head of described ICMP bandwidth back message using comprises the sequence number of described ICMP bandwidth back message using, after the 8th byte of the ICMP head of described ICMP bandwidth back message using, every four bytes comprise respectively the sign ID of m outgoing interface of described intermediate equipment in order, the bandwidth information of described m outgoing interface input direction and outbound course, wherein, m is natural number.
11. methods according to claim 10, is characterized in that, the type of described ICMP bandwidth back message using is 16, and the code of described ICMP bandwidth back message using is 0.
12. 1 kinds of equipment that obtain bandwidth information, is characterized in that, described equipment comprises: the first sending module and the first receiver module;
Described the first sending module sends bandwidth request message for n the intermediate equipment between described equipment and destination equipment, wherein, the destination address of described bandwidth request message is the IP address of n intermediate equipment, described bandwidth request message also carries the IP address of destination equipment, and n is natural number;
Described the first receiver module is for sending after bandwidth request message to n intermediate equipment between described equipment and destination equipment at described the first sending module, reception, from the bandwidth back message using of n intermediate equipment, obtains n intermediate equipment to the outgoing interface of destination equipment and the bandwidth information of described outgoing interface.
13. equipment according to claim 12, it is characterized in that, described bandwidth request message is internet network Internet Control Message Protocol ICMP bandwidth request message, the IP address of described n intermediate equipment is in the IP head of described ICMP bandwidth request message, and the IP address of described destination equipment is in the ICMP head of described ICMP bandwidth request message.
14. equipment according to claim 13, is characterized in that,
First byte of the ICMP head of described ICMP bandwidth request message comprises the type of described ICMP bandwidth request message, second byte of the ICMP head of described ICMP bandwidth request message comprises the code of described icmp packet, third and fourth byte of the ICMP head of described ICMP bandwidth request message comprise described icmp packet verification and, the the 5th and the 6th byte of the ICMP head of described ICMP bandwidth request message comprises the identifier of described icmp packet, the the 7th and the 8th byte of the ICMP head of described ICMP bandwidth request message comprises the sequence number of described icmp packet, the the 9th to the 12 byte of the ICMP head of described ICMP bandwidth request message comprises the IP address of described destination equipment.
15. equipment according to claim 14, is characterized in that, the type of described ICMP bandwidth request message is 15, and the code of described ICMP bandwidth request message is 0.
16. equipment according to claim 12, is characterized in that, described bandwidth back message using is ICMP bandwidth back message using.
17. according to claim 12 to the equipment described in 16, it is characterized in that, described equipment also comprises: the second sending module and the second receiver module;
Described the second sending module is for sending to described destination equipment the ping request message that internet network agreement life span TTL is n according to the IP address of described destination equipment;
Described the second receiver module, for sending after the ping request message that TTL is n to described destination equipment at described the second sending module, receives the TTL timeout packet from n intermediate equipment, obtains the IP address of n intermediate equipment.
18. 1 kinds of equipment that obtain bandwidth information, is characterized in that, described equipment comprises: receiver module and sending module;
Described receiver module is for receiving the bandwidth request message from originator device, and wherein, the destination address of described bandwidth request message is the IP address of described intermediate equipment, and described bandwidth request message also carries the IP address of destination equipment;
Described sending module is for receiving after the bandwidth request message from originator device at described receiver module, to described originator device, send bandwidth back message using, wherein, described bandwidth back message using comprises that described intermediate equipment is to the outgoing interface of destination equipment and the bandwidth information of described outgoing interface, wherein, described outgoing interface is to determine according to the IP address of described destination equipment.
19. equipment according to claim 18, it is characterized in that, described bandwidth request message is ICMP bandwidth request message, the IP address of described intermediate equipment is in the IP head of described ICMP bandwidth request message, and the IP address of described destination equipment is in the ICMP head of described ICMP bandwidth request message.
20. equipment according to claim 19, is characterized in that, described bandwidth back message using is ICMP bandwidth back message using.
21. equipment according to claim 20, is characterized in that,
First byte of the ICMP head of described ICMP bandwidth back message using comprises the type of described ICMP bandwidth back message using, second byte of the ICMP head of described ICMP bandwidth back message using comprises the code of described ICMP bandwidth back message using, third and fourth byte of the ICMP head of described ICMP bandwidth back message using comprise described ICMP bandwidth back message using verification and, the the 5th and the 6th byte of the ICMP head of described ICMP bandwidth back message using comprises the identifier of described ICMP bandwidth back message using, the the 7th and the 8th byte of the ICMP head of described ICMP bandwidth back message using comprises the sequence number of described ICMP bandwidth back message using, after the 8th byte of the ICMP head of described ICMP bandwidth back message using, every four bytes comprise respectively the sign ID of m outgoing interface of described intermediate equipment in order, the bandwidth information of described m outgoing interface input direction and outbound course, wherein, m is natural number.
22. equipment according to claim 21, is characterized in that, the type of described ICMP bandwidth back message using is 16, and the code of described ICMP bandwidth back message using 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 true CN103701626A (en) | 2014-04-02 |
CN103701626B CN103701626B (en) | 2018-01-19 |
Family
ID=50363029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210369914.6A Expired - Fee Related 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107508762A (en) * | 2017-08-17 | 2017-12-22 | 迈普通信技术股份有限公司 | Network traffics transmission method and source device |
WO2019128649A1 (en) * | 2017-12-29 | 2019-07-04 | 华为技术有限公司 | Data stream sending method, device and system |
CN111787593A (en) * | 2019-04-03 | 2020-10-16 | 电信科学技术研究院有限公司 | Data transmission method and node |
CN112602294A (en) * | 2018-08-29 | 2021-04-02 | 华为技术有限公司 | Method and device for detecting bandwidth |
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 not_active Expired - Fee Related
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 |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107508762A (en) * | 2017-08-17 | 2017-12-22 | 迈普通信技术股份有限公司 | Network traffics transmission method and source device |
WO2019128649A1 (en) * | 2017-12-29 | 2019-07-04 | 华为技术有限公司 | Data stream sending method, device and system |
US11252099B2 (en) | 2017-12-29 | 2022-02-15 | Huawei Technologies Co., Ltd. | Data stream sending method and system, and device |
CN112602294A (en) * | 2018-08-29 | 2021-04-02 | 华为技术有限公司 | Method and device for detecting bandwidth |
CN112602294B (en) * | 2018-08-29 | 2021-10-15 | 华为技术有限公司 | Method and device for detecting bandwidth |
US11388090B2 (en) | 2018-08-29 | 2022-07-12 | Huawei Technologies Co., Ltd. | Bandwidth measurement method and measurement device |
CN111787593A (en) * | 2019-04-03 | 2020-10-16 | 电信科学技术研究院有限公司 | Data transmission method and node |
CN111787593B (en) * | 2019-04-03 | 2022-08-30 | 大唐移动通信设备有限公司 | Data transmission method and node |
Also Published As
Publication number | Publication date |
---|---|
CN103701626B (en) | 2018-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101616029B (en) | Method and system for realizing network topology discovery | |
US20180372507A1 (en) | Information sharing method of smart electricity meter, smart electricity meter and acquisition router | |
CN102377640B (en) | Message processing apparatus, message processing method and preprocessor | |
CN101729391B (en) | Method, node and system for acquiring link aggregation group information | |
EP3496346B1 (en) | Data message forwarding method and apparatus | |
CN105554065A (en) | Method, conversion unit and application unit for message processing | |
US9154544B2 (en) | Device and method for supporting internet-based sensor data transmission | |
CN104717081A (en) | Gateway function realization method and device | |
CN102726031A (en) | Content processing method, device and system | |
CN107947994B (en) | Network topology self-discovery method and device, network equipment and computer storage medium | |
CN102404195A (en) | Data transmission method, gateway and network system | |
CN109728962A (en) | A kind of method and apparatus sending message | |
CN102891803B (en) | Congestion processing method and network device | |
CN102404418A (en) | Method, device and system for allocating IP address to user terminal | |
CN108270602A (en) | A kind of detection method of data link, apparatus and system | |
CN103840976A (en) | Communication method, optical module and network device | |
CN107872368B (en) | Method and device for detecting accessibility of gateway in network node cluster and terminal | |
CN103618801A (en) | Method, device and system for sharing P2P (Peer-to-Peer) resources | |
CN106067862A (en) | The construction method of network topology and device | |
CN103701626A (en) | Method and equipment for acquiring bandwidth information | |
CN110120897A (en) | Link detection method, apparatus, electronic equipment and machine readable storage medium | |
CN103401716A (en) | Network performance measurement method, network management equipment and network element equipment | |
CN117041134A (en) | Data path planning method, device and equipment | |
US9893945B2 (en) | Process system for constructing network structure deployment diagram and method thereof and computer program product storing analysis program of network structure deployment | |
CN104969521A (en) | Data sending and processing method and router |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180119 |