A kind of method of transmission equipment and its proactive dissemination self information
Technical field
The present invention relates to communication technical field, more particularly to the side of a kind of transmission equipment and its proactive dissemination self information
Method.
Background technology
Under Metropolitan Area Network (MAN) IPization trend, the evolution of transmission equipment realizes to be changed into from " multiple services interface adaptability "
" multiple services kernel adaptability ".At this moment PTN (Packet Transport Network, packet network) network meet the tendency of and
It is raw.
PTN is a kind of to be grouped as unit of transfer, is carried based on carrier ethernet business, compatible TDM (Time
Division Multiplex and Multiplexer, time division multiplexing), ATM (Asynchronous Transfer Mode,
Asynchronous transfer mode) and the business such as FC synthesis tranmission techniques.
Although PTN network provides OAM (the Operation Administration and of end-to-end stratification
Maintenance, operation, management, safeguard) function, but these functions need well afterwards accordingly to be matched somebody with somebody in network design
Putting processing could normally play a role;And if configuration error, OAM function is also inoperative.
At the initial stage of networking, and, it is necessary to some basic information when network upgrade occurrence of equipment switches,
It is exactly mainly that each optical fiber or cable are wherefrom to come, it is necessary to be connected to the available informations such as which port of which veneer;
And at this moment OAM(Operation Administration Maintenance) can not play a role well because being also configured without.Due to now believing without available OAM
Breath, so the correct connection of cable can not be ensured, and if cable connection error, the correct of carry out business of just having no idea is matched somebody with somebody
Put.
The content of the invention
The present invention provides a kind of method of transmission equipment and its proactive dissemination self information, to solve to pass in the prior art
Transfer device can not active in time issue self information the problem of.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is as follows:
On the one hand, the present invention provides a kind of method of transmission equipment proactive dissemination self information, including:
Transmission equipment sets self identification information to be released;
The self identification information is filled in compared with short packages by transmission equipment;
Transmission equipment is exported described to subordinate equipment compared with short packages.
Wherein, described compared with short packages is the relatively short packages that transmit during transmission equipment present communications, and/or to pass
The relatively short packages of transfer device proactive dissemination.
Further, it is described compared with short packages be transmission equipment present communications during transmit relatively short packages when, institute
State transmission equipment the self identification information is filled in it is described compared with the byte of padding of short packages.
Further, the relatively short packages transmitted during the transmission equipment present communications are ARP
Protocol data bag;The relatively short packages of the transmission equipment proactive dissemination are gratuitous ARP protocol data bag.
Further, the self identification information includes the physical location information of transmission equipment.
On the other hand, the present invention also provides a kind of transmission equipment, including:
Information setup module, for setting self identification information to be released;
Packet fills module, for the self identification information to be filled in compared with short packages;
Packet issues module, for being exported described compared with short packages to subordinate equipment.
Wherein, it is shorter to be transmitted during transmission equipment present communications compared with short packages in the packet filling module
Packet, and/or the relatively short packages for transmission equipment proactive dissemination.
Further, it is described compared with short packages be transmission equipment present communications during transmit relatively short packages when,
The packet fills module, described compared with the byte of padding of short packages for the self identification information to be filled in.
Further, the self identification information that described information setup module is set includes the physical bit confidence of transmission equipment
Breath.
The present invention has the beneficial effect that:
The method of the invention and device, existing resource is made full use of, using original insignificant byte of padding, to pass
Meaningful self information is sent, and self information proactive dissemination is gone out, allows opposite end to identify the identity of itself, ensures cable
Correct connection.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only
Some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, also
Other accompanying drawings can be obtained according to these accompanying drawings.
Fig. 1 is the structure chart of two kinds of frame formats in existing standard;
Fig. 2 is compared with the structure chart of short packages in the present invention;
Fig. 3 is the method flow diagram for the transmission equipment proactive dissemination self information that the embodiment of the present invention one provides;
Fig. 4 is the self identification information schematic diagram that the embodiment of the present invention is set;
Fig. 5 is the method flow diagram for the transmission equipment proactive dissemination self information that the embodiment of the present invention two provides;
Fig. 6 is the method flow diagram for the transmission equipment proactive dissemination self information that the embodiment of the present invention three provides;
Fig. 7 is that a kind of structural diagrams of transmission equipment provided by the invention are intended to;
Fig. 8 is the structural representation of device example of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
It is an object of the present invention to provide a kind of method of transmission equipment and its proactive dissemination self information so that transmission
Equipment can provide the information of itself and come out at any time, be easy to recipient's identification and processing, ensure that the correct of cable connects
Tap into and realize the correct configuration of business.
Specifically, the present invention is exactly using packet switch as core, to realize to multiple services in view of PTN key characteristic
Support;And the business carried is based on carrier ethernet business.In the TCP/IP worlds, the encapsulation of ethernet ip datagram
It is defined in RFC 894, the IP datagram encapsulation of the networks of IEEE 802 is defined in RFC 1042.
The frame and the frame of Ethernet that 802.3 standards define have minimum length requirement.802.3 regulation data divisions must be extremely
It is less 38 bytes, and for Ethernet, then require at least there are 46 bytes.In order to ensure this point, it is necessary in the space of deficiency
Insertion filling (pad) byte.As shown in figure 1, two different form of encapsulation format is given, the number in figure below each square frame
Word is their byte length.
The method of the invention be exactly using transmitting some useful OAM Informations compared with the byte of padding in short packages,
With being sent compared with short packages, the information of itself is actively sent out.Compared with short message specific form as shown in Fig. 2 wherein,
Data division is made up of effective information and byte of padding.
The several specific embodiments of the present invention are provided below according to Fig. 3~Fig. 6, and combine the description to embodiment, further
Provide the ins and outs of the present invention.
Embodiment one
As shown in figure 3, the embodiment of the present invention provides a kind of method of transmission equipment proactive dissemination self information, including:
Step S301, transmission equipment sets self identification information to be released;Wherein, the form of the self identification information
Meet that receiving and dispatching double hairs can identify;
Step S302, transmission equipment utilizes the relatively short packages transmitted during present communications, and self identification information is filled out
Fill in the byte of padding compared with short packages;
Wherein, shorter packet refers to the packet for the minimum length requirement for not reaching the frame that standard defines.
Step S303, transmission equipment exports the relatively short packages for filling self identification information to subordinate equipment.
Wherein, self identification information preferably includes the physical location information of transmission equipment, it is of course also possible to be that transmitting-receiving is double
The other information that side can identify;The physical location information includes:Country code, province code, county's code, small towns code,
Natural village code, rack sub-rack numbering, single-board slot numbering, veneer port numbering etc., concrete structure is as shown in Figure 4.
In the embodiment of the present invention, transmission equipment is filled out self identification information using the current relatively short packages transmitted
Fill in the byte of padding compared with short packages, realize issuing for self identification information.It can be seen that the embodiment of the present invention makes full use of
Some resources, using original insignificant byte of padding, to transmit significant self identification information, and make self identification information
Sent out under active, ensure the correct connection of cable.
Embodiment two
The embodiment of the present invention provides a kind of method of transmission equipment proactive dissemination self information, the implementation process of the present embodiment
It is essentially identical with embodiment one, unlike, in the present embodiment, due in actual moving process, it is understood that there may be shorter in network
Packet is less, and now transmission equipment needs self information to be notified as early as possible the situation to receiving terminal, on the other hand, the present invention is real
Apply in example, transmission equipment can be described compared with itself mark that transmission equipment is carried in short packages with proactive dissemination compared with short packages
Know information.
As shown in figure 5, specific implementation is as follows,
Step S501, transmission equipment sets self identification information;
Step S502, transmission equipment self identification information is filled in the relatively short packages that are transmitted during present communications and
In the relatively short packages of proactive dissemination;
Step S503, transmission equipment exports the relatively short packages for filling self identification information to subordinate equipment.
In the present embodiment, transmission equipment can judge itself by detecting the quantity for the relatively short packages transmitted in communication
Whether proactive dissemination is wanted compared with short packages, and the length of the relatively short packages sent, quantity, frequency etc..
The embodiment of the present invention is minimum in resource consumption by the relatively short packages of transmission and the relatively short packages of proactive dissemination
On the premise of, the identification information of itself is passed to rear method, apparatus by timely active, ensure that the correct connection of cable.
Embodiment three
A kind of method of transmission equipment proactive dissemination self information provided in an embodiment of the present invention, as shown in fig. 6, including:
Step S601, transmission equipment sets self identification information;Wherein, the form of the self identification information will meet to receive
The double hairs of hair can identify;
Step S602, transmission equipment utilizes the relatively short packages of proactive dissemination, and self identification information is filled in compared with short number
According in bag;
Step S603, transmission equipment exports the relatively short packages for filling self identification information to subordinate equipment.
In the embodiment of the present invention, transmission equipment by proactive dissemination compared with short packages, be capable of active in time by itself
Identification information is transferred to subordinate equipment, ensure that the correct connection of cable.
In above-described embodiment, the transmission equipment can use in general ARP protocol packet as in transmit process compared with
Short packet, the transmission equipment can use ARP characteristics --- and gratuitous ARP (gratuitous ARP) is used as proactive dissemination
Relatively short packages, it refer to main frame send ARP search the IP address of oneself.
Because continue as shown in figure 1, the encapsulation format (RFC of IEEE 802.2/802.3 (RFC 1042) and Ethernet
894), two kinds of frame formats all using 48bit (6 byte) destination address and source address (802.3 allow the address using 16bit,
But usually 48bit addresses), here it is hardware address.ARP and RARP agreements are to 32bit IP address and 48bit hardware
Location is mapped.Because ARP request or the data frame length of answer are all 42 bytes (the ARP data of 28 bytes, the ether of 14 bytes
Net frame head), therefore, each frame, which all must be added to, fills character to reach the requirement of the minimum length of Ethernet:60 bytes.
In summary, the method for transmission equipment proactive dissemination self information provided by the invention, makes full use of existing money
Source, using original insignificant byte of padding, to transmit meaningful self information, and go out self information proactive dissemination
Go, allow opposite end to identify the identity of itself, ensure the correct connection of cable.
Also, it is that IP address conversion is completed as second layer physical address (i.e. MAC by ARP protocol in a local network
Location).ARP protocol has great importance to network security.Realize that ARP is cheated by forging IP address and MAC Address, can
Producing the substantial amounts of ARP traffics in a network makes network congestion.And the present invention is utilized, the self identification carried can also be used to believe
ARP messages are filtered breath and speed limit:Self identification information for carrying and the information stored in the past are inconsistent, can be with
Filter out;The ARP message rates that carrying identical self identification information can also be set are a reasonable value.It can be seen that the present invention
It is also prevented from ARP attacks.
As shown in fig. 7, the present invention also provides a kind of transmission equipment, including:
Information setup module, for setting self identification information to be released;
Packet fills module, for the self identification information to be filled in compared with short packages;
Packet issues module, for being exported described compared with short packages to subordinate equipment.
Wherein, the self identification information that described information setup module is set preferably includes the physical bit confidence of transmission equipment
Breath, it is of course also possible to be the other information that receiving-transmitting sides can identify.
Further, described compared with short packages is the relatively short packages that transmit during transmission equipment present communications, and/or
For the relatively short packages of transmission equipment proactive dissemination.
Also, it is described compared with short packages be transmission equipment present communications during transmit relatively short packages when, data
Bag filling module, self identification information is filled in described compared with the byte of padding of short packages.
Wherein, the relatively short packages transmitted during the transmission equipment present communications are ARP agreement
Packet;The relatively short packages of the transmission equipment proactive dissemination are gratuitous ARP protocol data bag.
Below by a specific example, the ins and outs of device of the present invention are further provided.
The application scenarios of example of the present invention are as shown in figure 8, including three parts:
Webmaster or CLI (Command Line Interface), it is responsible for man-machine interaction;
Network element control plate, it is responsible for the configuration of whole network element, includes the configuration information of each veneer;
Business board, optical fiber or netting twine are connected with, are responsible for receiving and send packet, the specific business of transmission.
Realize that the process of proactive dissemination self identification information is as follows in the present invention:
Self identification information to be released is set by using webmaster or order line;
The self identification information of setting is stored in above network element control plate and is handed down to business board by webmaster or order line;
Self identification information of the business board filling compared with the byte of padding inside short packages for setting, and with compared with short data
The transmission of bag, self identification information is actively sent out.
So that self identification information is physical location information as an example, physical location information includes:Country code, province code,
County's code, small towns code, natural village code, rack sub-rack numbering, single-board slot numbering, veneer port numbering etc..Specific implementation
When, which physical location information can be set to be used as self identification information to be released by webmaster and order line, for country
The information such as code, province code, county's code, small towns code, natural village code, rack sub-rack numbering, can pass through webmaster or life
Order row input, and can be added for single-board slot numbering, veneer port numbering etc. by business board, most all physics at last
Positional information is filled into compared with short packages.
Further, in example of the present invention, webmaster or order line proactive dissemination can also be used compared with short packages, i.e., it is logical
Cross webmaster or Command Line Interface sets the length for sending packet, the transmission times of packet can also be set in addition, and
The frequency of transmission or cycle;Business board is sent to by network element control plate, business board webmaster or order line are set itself
Identification information is transmitted by the relatively short packages of proactive dissemination to subordinate equipment.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.