Embodiment
When each VC equipment forward end encoding device obtains monitor data in the prior art; Be subjected to transfer of data way and bandwidth resources quantitative limitation; Especially a plurality of VC equipment need be respectively a plurality of VC equipment when obtaining the monitor data of same front end encoding device and set up many monitor data transmission paths; Thereby cause transfer resource repeat take; Influence the problem of the efficiency of transmission of monitor data; The present invention proposes a kind of monitor data transmission plan of conserve bandwidth resource; Especially obtain simultaneously under the situation of monitor data of same front end encoding device at a plurality of VC equipment; Effectively reduce bandwidth resources repeat take, reach the purpose of conserve bandwidth resource when guaranteeing the monitor data transmission.
As shown in Figure 4; Schematic flow sheet for the transmission method of a kind of monitor data proposed by the invention; Be applied to comprise at least in the video monitoring system of VM server, the network switching equipment, front end encoding device and VC equipment; The network switching equipment is connected with a plurality of VC equipment through different ports respectively, and method specifically may further comprise the steps:
Step S401, when the network switching equipment receives the request of the monitor data that obtains the first front end encoding device that a VC sends through first port; The network switching equipment is chosen first virtual ip address and is sent the request of obtaining the first front end encoding device monitor data as the IP address of a VC to the VM server from the virtual ip address section of self, the while is at first corresponding relation of local record the one VC MAC Address, a VC IP address, first virtual ip address, first port.
In advance, need preset a virtual ip address section in the network switching equipment, each virtual ip address in this virtual ip address section can be selected as the pairing virtual ip address of some front end encoding devices by the network switching equipment.The network switching equipment all can reach with VM server route through each virtual ip address in this virtual ip address section, promptly can realize corresponding interacting message and message transmission with the VM server.
In the implementation procedure of this step; After having confirmed the first corresponding virtual ip address of the first front end encoding device; Corresponding fallback relationship between the IP address that the network switching equipment writes down a VC and first virtual ip address is to realize follow-up IP address replacement operation.
Certainly; In the application scenarios of reality; In order to guarantee communicating by letter between the network switching equipment and the VC; In the process that this step is accomplished; The network switching equipment also need be preserved the pairing port information of a VC (being the information of aforesaid first port); And; Can also further (for example preserve other identification informations; The identification information of the one VC; Or its corresponding mac address information etc.); Concrete which information of preserving can be set according to the communication needs of reality, and such variation does not influence protection scope of the present invention.
In embodiments of the present invention, this network switching equipment first corresponding relation that specifically need write down comprises the corresponding relation of a VC MAC Address, a VC IP address, first virtual ip address, first port.
In the application of reality, the beginning request message generally can carry following information:
The identification information of the identification information of source MAC address information, source IP address information, the purpose EC equipment (front end encoding device) of being asked, the video camera (passage under the EC) of being asked, the identification information of a VC are (for example: the MP id information).
Information (the purpose EC equipment mark information of being asked) based on the first front end encoding device of being asked that comprises in the above-mentioned information; And the identification information of the video camera of being asked; The network switching equipment can distribute corresponding first virtual ip address for this first front end encoding device; In the acquisition process of follow-up monitor data; This first virtual ip address is unique corresponding with this monitor data source; No matter ask the VC amount of equipment of this monitor data what are arranged; The network switching equipment all with these VC equipment virtual be same equipment; With first virtual ip address is sign; To the corresponding monitor data of VM server requests; Be that the network switching equipment replaces the IP address and the VM server of the VC equipment of request monitor data to carry out interacting message by first virtual ip address, accomplish solicit operation the monitor data of the first front end encoding device.
Operation is transmitted in such replacement, makes the VM server only can perceive the pairing equipment of virtual ip address in the corresponding monitor message of request on the one hand, and on the other hand, it self is to carry out direct information interaction with the VM server that VC equipment is felt.
Wherein, The network switching equipment in this step replaces the IP address of a VC and VM server to carry out in the process of interacting message through first virtual ip address; The network switching equipment needs recorder to arrive the information of port of the monitor data of the indicated reception of the VM server first front end encoding device; Simultaneously; Also need store the message that the VM server sends to first virtual ip address in this locality; In order to when the identical monitor data of other VC device request, carry out interacting message with it.
It is the monitor data of first virtual ip address that step S402, the network switching equipment receive purpose IP address; The purpose IP address of monitor data is replaced with the IP address of a VC by first virtual ip address; Purpose MAC field is inserted a VC MAC Address, and through first port this monitor data is sent to a VC.
In this step; Because the purpose IP address of the monitor data that receives is first virtual ip address; So; In order to transmit to real monitor data request end (VC); The network switching equipment need replace with the purpose IP address in the monitor data that receives the IP address of the one VC; And the target MAC (Media Access Control) address of monitor data is replaced with the MAC Address of a VC; Then; Monitor data after the replacement is transmitted to a VC by first port; Certainly; Concrete transmit operation is the information according to the port of the monitor data of the indicated reception first front end encoding device of the VM server that is write down among the step S401; Corresponding ports is sent in a VC; So far, begun the transmission of monitor data between a VC and the first front end encoding device.
In the operation of reality, accomplished through the network switching equipment after the obtaining of monitor data, if the same monitor data of other VC device request, then execution in step S403 are arranged at a VC.
Step S403, when the request of subsequent network switching equipment through the same monitor data of second port getting of receiving that the 2nd VC sends and a VC; At second corresponding relation of local record the 2nd VC MAC Address, the 2nd VCIP address, first virtual ip address, second port, and be that the monitor data of first virtual ip address also sends to the 2nd VC with the purpose IP address that receives.
In concrete implementation procedure, the explanation of corresponding handling process is following:
(1) when the network switching equipment receives the request of the monitor data that obtains the first front end encoding device that the 2nd VC sends through second port; The purpose IP address that the network switching equipment sends to the message of first virtual ip address with the VM server of this locality storage replaces with the IP address of the 2nd VC; Send to the 2nd VC; And receive the response message that the 2nd VC returns, accomplish the solicit operation of the 2nd VC to the monitor data of the first front end encoding device.
Herein in the reason process; The network switching equipment before the corresponding message that the 2nd VC sends in fact all is a VC by the network switching equipment in the process of the monitor data of the VM server requests first front end encoding device; Send to (purpose IP address is first virtual ip address) of the network switching equipment by the VM server; The network switching equipment can be with corresponding message stores in this locality; When the 2nd VC asks same monitor data; Purpose IP address in the corresponding message is replaced with the IP address of the 2nd VC; Then; Give the 2nd VC with the forwards that the replacement of purpose IP address is accomplished; And receive the response message of the 2nd VC feedback; Thereby; By the interacting message between the network switching equipment and the 2nd VC only, accomplish the solicit operation of the 2nd VC to the monitor data of the first front end encoding device.
Concrete; Above-mentioned interacting message is actually the preparation of having set up the data transfer path between the network switching equipment and the 2nd VC; And the data transfer path between the network switching equipment and first data acquisition facility; Then in a VC asks the process of monitor data of the first front end encoding device, set up and accomplished; Therefore, need not to carry out separately again and the VM server between interacting message.
Through above-mentioned processing procedure; The network switching equipment has been set up corresponding data transfer path respectively and between a VC and the 2nd VC; And at the opposite side of the network switching equipment; Because a VC is identical with the destination of the monitor data that the 2nd VC is asked; Therefore, a VC and the 2nd VC shared same data transfer path between the network switching equipment and the first front end encoding device.
In above-mentioned IP address replacement process; In the IP address that the network switching equipment also need add the IP address of the 2nd VC and the corresponding fallback relationship of first virtual ip address to a VC who has write down and the corresponding fallback relationship of first virtual ip address; Thereby, the IP group of addresses that realizes the IP address of the IP address of a VC and the 2nd VC is formed and the record of the many-to-one fallback relationship between first virtual ip address.
Simultaneously, also need write down second port and the pairing mac address information of the 2nd VC, promptly accomplish the record of corresponding second corresponding relation, handle with the forwarding of conveniently follow-up monitor data.
(2) network switching equipment receives the monitor data that the first front end encoding device sends to an IP address; The network switching equipment copies as two parts with monitor data; And respectively the purpose IP address of two parts of monitor datas is replaced with the IP address of a VC and the IP address of the 2nd VC; The target MAC (Media Access Control) address of two parts of monitor datas is replaced with the MAC Address of a VC and the MAC Address of the 2nd VC; And the monitor data that purpose IP address replaces with the IP address of a VC is sent to corresponding ports among the VC by first port; By second port monitor data that purpose IP address replaces with the IP address of the 2nd VC is sent to corresponding ports among the 2nd VC; Concrete, neutralize corresponding ports among the 2nd VC of an above-mentioned VC specifically is to confirm according to the information of the port of the monitor data of the indicated reception first front end encoding device of the VM server of record in advance.
This processing process is after the network switching equipment receives corresponding monitor data; The monitor data transmission course of the one-to-many that is carried out to a plurality of VC equipment (VC and the 2nd VC); In this process; Before monitor data arrives the network switching equipment; Shared same data transfer path; Can be because of of the repetition program request of a plurality of VC equipment to identical monitor data, and cause bandwidth resources repeat take.
Further, for above-mentioned monitor data transmission course is removed, the embodiment of the invention has also proposed corresponding escape mechanism, specifies as follows:
With reference to above-mentioned handling process; After a VC obtains the monitor data of the first front end encoding device through the network switching equipment; The 2nd VC also begins to obtain identical monitor data through the network switching equipment simultaneously; So; If a VC and the 2nd VC need stop corresponding monitor data transmission; The order difference of the transmit leg of indicating according to stopping accordingly of receiving, corresponding processing procedure comprises following two kinds of situation:
Situation one, the network switching equipment are received the indication that stops of VC transmission earlier.
If the network switching equipment preferentially obtains the request of the monitor data of the first front end encoding device through first port stopping of receiving that a VC sends; The network switching equipment is to the aforementioned first correspondence setting invalid flag of local record, and stops to send to a VC monitor data of the first front end encoding device.
Through such processing; Though still preserve the record of aforesaid first corresponding relation and second corresponding relation in the network switching equipment; But; When receiving the message that sends to first virtual ip address accordingly or monitor data; The network switching equipment will can not replace with first virtual ip address IP address of the one VC again; And just it is replaced with the IP address of the 2nd VC, and be transmitted to the 2nd VC through second port.
Further; When the network switching equipment follow-up through second port receive that the 2nd VC sends stop to obtain the request of monitor data the time; The network switching equipment is that source IP address sends the request that stops to obtain monitor data to the VM server with first virtual ip address; And local first corresponding relation and second corresponding relation of preserving of deletion discharges first virtual ip address.
Situation two, the network switching equipment are received the indication that stops of the 2nd VC transmission earlier.
If the network switching equipment preferentially obtains the request of the monitor data of the first front end encoding device through second port stopping of receiving that the 2nd VC sends; Then the network switching equipment is directly deleted second corresponding relation at local record, and stops to send to the 2nd VC the monitor data of the first front end encoding device.
So far, system comes back to the situation of having only a VC to obtain the monitor data of the first front end encoding device through the network switching equipment.
In such cases; Receive the request that stops to obtain monitor data that a VC sends if the network switching equipment is follow-up through first port; So; The network switching equipment is that source IP address sends the request that stops to obtain monitor data to the VM server with first virtual ip address; And local first corresponding relation of preserving of deletion discharges first virtual ip address.
It is to be noted; Above-mentioned accomplishes the processing procedure that stops to indicate that the processing continued that stops to indicate of the 2nd VC is received a VC; Under the current situation of having only a VC obtains the first front end encoding device through the network switching equipment monitor data, the processing procedure that stops to indicate that receives a VC is on all four.
No matter be which kind of above-mentioned situation; After the processing that stops to indicate of all having accomplished a VC and the 2nd VC, all need be with the corresponding fallback relationship deletion of precedence record, simultaneously; Discharge first virtual ip address, so that carry out recycling to corresponding virtual ip address resource.
On the basis of above-mentioned technical scheme; No matter what VC equipment have been initiated acquisition process to identical monitor data; Just virtual ip address that the VM server is seen is at this monitor data of request; Therefore; Corresponding front end encoding device only need send a monitor data to the network switching equipment, thereby realizes the saving of bandwidth.
But; On the basis of conserve bandwidth; If the VM server hopes to know real monitoring corresponding relation; So; This network switching equipment can be after sending the request of the monitor data that obtains the first front end encoding device with first virtual ip address to the VM server; Also send a VC of true request monitor data and the information of the 2nd VC, make the real monitoring relation of record on the VM server to the VM server:
At first; After a VC begins to obtain the monitor data of the first front end encoding device through the network switching equipment; Set up the monitoring relation between first virtual ip address and the first front end encoding device in the VM server, monitoring is closed not tie up to when having VC equipment to obtain the monitor data of the first front end encoding device and is deleted.
Through such processing, preserve the monitoring relation of the monitoring client of monitor data source and this monitor data of request in the VM server.
Further; On this basis; When the network switching equipment receives the request of the monitor data that obtains the first front end encoding device that the 2nd VC sends; The network switching equipment is set up message to the relation that the VM server sends the identification information that carries the 2nd VC; So that the VM server is under the relation of the monitoring between first virtual ip address and the first front end encoding device; Further set up a sub-instance; Write down the monitoring relation between the 2nd VC and this first front end encoding device, realize the record of real monitoring relation.
Corresponding with aforesaid escape mechanism; Also there is deleting mechanism in the record of corresponding real monitoring relation; Stop to obtain the request of the monitor data of the first front end encoding device if the network switching equipment receives preferentially that the 2nd VC sends; The sub-instance of foundation before then network switching equipment notice VM server is deleted; And obtain the situation of request of the monitor data of the first front end encoding device for the network switching equipment stopping of receiving preferentially that a VC sends; Because the VM server is the VC that formerly sets up and the monitoring of the first front end encoding device concerns; It promptly is the pairing main monitoring relation of the first front end encoding device; Therefore; Under the situation that has other sub-instances; The network switching equipment and VM server need further not operated the monitoring relation; When other VC equipment (the 2nd VC) also ask to stop to obtain the monitor data of the first front end encoding device, just can thoroughly deletion of relation will be monitored accordingly.
Through above-mentioned flow process; Can in the VM server, keep real monitoring corresponding relation; Write down which VC equipment is current to obtain for which monitor data; Certainly; Whether comprise that above-mentioned processing procedure can adjust according to the needs of reality, such variation does not influence protection scope of the present invention.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention; Can be virtual by the process that the network switching equipment obtains monitor data to same front end encoding device with each VC equipment be a virtual ip address obtains process from monitor data to this front end encoding device; Thereby; The process that makes each VC equipment obtain monitor data to same front end encoding device only need take the transmission path resource of a monitor data; Saving is for the shared bandwidth resources of the transmission course of the monitor data of same front end encoding device; Break the restriction of bandwidth in the prior art or way, solve the problem that the VC equipment that causes therefrom is restricted the acquisition process of monitor data.
In order further to set forth technological thought of the present invention, combine concrete application scenarios at present, technical scheme of the present invention is described.
The technical scheme that the embodiment of the invention proposed hopes in the monitor data transmission course, to solve simultaneously the restricted problem of EC unicast resource and network bandwidth resources, thereby in available bandwidth, can satisfy the demand of the monitor data of same EC of more user program request simultaneously.
For clearer description technical scheme of the present invention, the embodiment of the invention describes corresponding processing procedure through a plurality of the processing stage.
Phase I, the stage of setting.
In this stage; Can set up network configuration as shown in Figure 5; Wherein, S5 equipment is set as the network switching equipment; And, for this network switching equipment distributes a virtual address section, comprising a plurality of virtual ip address; Can supply to distribute to different monitor data sources, each virtual ip address in this virtual address section all can realize that between the network switching equipment and VM server route can reach.
Second stage, VC1 ask and stop the processing procedure of monitor data transmission.
In this process, the network switching equipment need be monitored GMP mutual between VC1 and the VM server and VMP (Video Manage Protocol, video management agreement) protocol massages, and the sketch map of corresponding processing procedure specifically may further comprise the steps as shown in Figure 6:
Step S601, VC1 send the GMP request message of monitor data of the passage 1 of acquisition request EC1 to the VM server.
When VC1 hoped the monitor data of the passage 1 among the program request EC1, VC1 sent GMP request message (being the beginning request message of the monitor data among the aforesaid step S401).
Step S602, the network switching equipment are confirmed a corresponding virtual IP address VIP1 for the pairing monitor data end of this request message, and the source IP address of this GMP request message is replaced with VIP1, are transmitted to the VM server then.
When the network switching equipment listens to the GMP request message at the P1 port, write down following information:
{ source MAC tabulation, source IP address tabulation, EC device id, video camera ID, MP ID tabulation }.
In the present embodiment, the MAC Address of supposing VC1 is MAC1, and the IP address is IP1, and the employed MP ID of VC1 is MID1; The monitor data of the passage 1 of request EC1, corresponding, if the EC1 device id is ID-1; Video camera ID is ID-1-1, and so, the five-tuple information of above-mentioned record is specially:
{MAC1,IP1,ID-1,ID-1-1,MID1}。
In this step; Receive the GMP request message of monitor data of passage 1 of request EC1 at the network switching equipment after; The network switching equipment is that the video camera of the passage 1 of EC1 distributes a virtual ip address; Be assumed to be VIP1; The source IP address that the network switching equipment is opened the GMP request in the monitor data message replaces with VIP1 and forwarding; Simultaneously, network switching equipment record replacement forwarding-table item is following:
{ virtual IP address is transmitted port list for VC MAC tabulation, VC IP tabulation }.
In the present embodiment, based on above-mentioned hypothesis, then replace forwarding-table item accordingly and be specially:
{MAC1,IP1,VIP1,P1}。
Step S603, VM server send the corresponding connection of Setup message foundation to the passage 1 of EC1.
Step S604, VM server send the VMP request message to VIP1.
In this VMP request message, purpose IP address is VIP1.
Step S605, the network switching equipment replace with IP1 with the purpose IP address of this VMP request message, are transmitted to VC1 then.
When the network switching equipment listens to the VM server response when giving the VMP request message of VIP1 address, search the replacement forwarding-table item of having stored, the IP address (IP1) that VIP1 is replaced back VC1, and forward from the P1 port.
Simultaneously, the receiving port address information of monitor data stream (monitor data stream) in the VMP request message is added in the replacement forwarding-table item, that is:
{ virtual IP address is transmitted port list for VC MAC, VC IP, monitor data stream receiving port address }.
Suppose that the receiving port address is 60000, then replaces forwarding-table item and is updated to:
{MAC1,IP1,VIP1,P1,60000}。
Step S606, VC1 return the VMP response message to the VM server.
Step S607, the network switching equipment replace with VIP1 with the source IP address of this VMP response message, are transmitted to the VM server then.
The network switching equipment continue to be monitored institute's interactive messages between VC1 and the VM server, when listening to the VMP response message of VC1 response, searches the replacement forwarding-table item, and the source IP address IP1 of VMP response message is replaced to VIP1, and to the VM server forwards.
Step S608, VM server send the GMP response message to VIP1.
Step S609, the network switching equipment replace with IP1 with the purpose IP address of this GMP response message, are transmitted to VC1 then.
So far, accomplished the protocol interaction process of passage 1 monitor data of VC1 request EC1.
The passage 1 of step S610, EC1 sends monitor data to VIP1.
Step S611, the network switching equipment replace with IP1 with the purpose IP address of monitor data, and target MAC (Media Access Control) address replaces with MAC1, is transmitted to the port of appointment among the VC1 then.
The passage 1 of EC1 is given VIP1 with monitor data stream with the forwarded in form of clean culture UDP flow; The network switching equipment receives that destination address is to transmit according to replacement behind the clean culture UDP flow of VIP1; The purpose IP address (VIP1) of clean culture UDP flow is replaced to IP1; Target MAC (Media Access Control) address replaces with MAC1, and is transmitted to 60000 ports of VC1 from the P1 port.
Wherein, the information of MAC1 and 60000 ports is recorded in step S602 and step S605 respectively in the replacement forwarding-table item, in above-mentioned replacement process, directly from the replacement forwarding-table item, extracts this information and gets final product.
It is to be noted; In above-mentioned processing procedure; Also need store the message that the VM server sends to VIP1 in the network switching equipment in the process of responding corresponding request message; Promptly preserve the corresponding message of being sent among step S604, the step S608; In order to using when the monitor data of the passage 1 of other VC request EC1; Concrete application scheme is referring to subsequent implementation example of the present invention, in this no longer repeat specification.
So far, accomplished the acquisition process of VC1 for the monitor data of the passage among the EC1 1, afterwards, if VC1 need stop to obtain of this monitor data, so, corresponding processing procedure is following:
Step S612, VC1 stop request message to the GMP that the VM server sends the monitor data of the passage 1 that stops to obtain EC 1.
Step S613, the network switching equipment replace with VIP1 with the source IP address that this GMP stops request message, are transmitted to the VM server then.
The source IP address that the network switching equipment will stop request message from the GMP that VC1 issues the VM server replaces with VIP1 by IP1, and is transmitted to the VM server.
Step S614, VM server send the corresponding connection of Release message release to the passage 1 of EC1.
Step S615, VM server send Release message to VIP1.
In this Release message, purpose IP address is VIP1.
Step S616, the network switching equipment replace with IP1 with the purpose IP address of this Release message, are transmitted to VC1 then.
Concrete, the network switching equipment is transmitted through the P1 port this Release message to VC1.
Step S617, VC1 return the response message of Release message to the VM server.
Step S618, the network switching equipment replace with VIP1 with the source IP address of this response message, are transmitted to the VM server then.
Step S619, VM server send GMP to VIP1 and stop response message.
Step S620, the network switching equipment replace with IP1 with the purpose IP address that this GMP stops response message, are transmitted to VC1 then.
So far, accomplished the processing procedure of monitor data that VC1 stops to obtain the passage 1 of EC1, VC1 will can not get access to the monitor data of the passage 1 of EC1 again.
The network switching equipment is removed the five-tuple list item of in step S602, being stored and corresponding replacement forwarding-table item; Simultaneously; With reference to above stated specification, the network switching equipment also need be removed the message that the VM server stored sends to VIP1 in the process of responding corresponding request message.
Phase III, after the transmission of VC1 request monitor data, VC3 asks the processing procedure of same monitor data.
The processing of this process is equivalent to the processing after aforesaid step S611, carried out, specifically as shown in Figure 7, may further comprise the steps:
Step S701, VC3 send the GMP request message of monitor data of the passage 1 of acquisition request EC1 to the VM server.
When VC3 hoped the monitor data of the passage 1 among the program request EC1, VC3 sent GMP request message (being the beginning request message of the monitor data among the aforesaid step S401).
When the network switching equipment listens to the GMP request message at the P3 port; Owing in step S602, write down the five-tuple information of the passage 1 of corresponding EC1; And the GMP request message that the P3 port is listened to is the monitor data of the passage 1 of request EC1 equally; The monitor data source that both asked is identical; Therefore, the pairing information of GMP request message that the P3 port need be listened to is added in this five-tuple information.
In the present embodiment, the MAC Address of supposing VC3 is MAC3, and the IP address is IP3, and the employed MP ID of VC3 is MID3, and so, the five-tuple information after the above-mentioned interpolation information is specially:
{{MAC1,MAC3},{IP1,IP3},ID-1,ID-1-1,{MID1,MID3}}。
Simultaneously, the network switching equipment joins during with the information of same of VC3 during the replacement of having write down among the step S605 transmits, and in the present embodiment, based on above-mentioned hypothesis, then replaces forwarding-table item accordingly and is specially:
{{MAC1,MAC3},{IP1,IP3},VIP1,{P1,P3},60000}。
The purpose IP address of the VMP request message that the VM server that step S702, the network switching equipment will be stored is in advance responded replaces with IP3, is transmitted to VC3 then.
The network switching equipment all is the message of being sent to VIP1 by the VM server of being stored to the processing procedure of step S609 at step S604 to the message that VC3 sends here; In this step; The network switching equipment directly replaces the VM server; Before to carry out alternately at local stored message territory VC3; Just, the purpose IP address in these message replaces with IP3 by VIP1.
The reason of Chu Liing is like this; Be connected to set up to the step S609 in the communication between the passage 1 of the network switching equipment and EC1 and accomplish at step S601; Because VC3 is the monitor data of the passage 1 of request EC1 equally; So, can use this communication to be connected the transmission of carrying out monitor data jointly with VC1.
Hence one can see that; Before this step, the network switching equipment is connected with communication between the monitor data source and need not to set up again, therefore; Need not also to be that the VM server carries out corresponding interacting message, be connected and get final product and only need between the network switching equipment and VC3, set up corresponding communication.The network switching equipment was directly being foundation in local stored message before; Behind the replacement purpose IP address; Carry out interacting message with VC3; In the establishment of connection of accomplishing between the network switching equipment and the VC3 of communicating by letter; Avoided and the VM server between the interacting message that repeats; Also need not to carry out separately the communication connection in same monitor data source, practiced thrift the corresponding network bandwidth and the communication resource, also improved corresponding treatment effeciency.
Step S703, VC3 return the VMP response message to the VM server.
In this step; Why VC3 is to the reason that the VM server sends the VMP response message; In step S702; The received VMP request message of VC3 is stored by the network switching equipment in advance; It sends source information is the information of VM server; Therefore, VC3 thinks that the VM server is communicating with it, need be to the corresponding VMP response message of VM server response.
But in fact, the VMP response message that VC3 responded is directly tackled by the network switching equipment, can upwards not send to the VM server again.The network switching equipment continues to replace VM server and VC3 to carry out interacting message.
The purpose IP address of the GMP response message that the VM server that step S704, the network switching equipment will be stored is in advance responded replaces with IP3, is transmitted to VC3 then.
So far, replace the VM server to accomplish the protocol interaction process of passage 1 monitor data of VC3 request EC1 by the network switching equipment.
The passage 1 of step S705, EC1 sends monitor data to VIP1.
Step S706, the network switching equipment copy as two parts with monitor data; The purpose IP address of a copy of it is replaced with IP1 by VIP1; Target MAC (Media Access Control) address replaces with MAC1; Be transmitted to the port of appointment the VC1 from the P1 port; Simultaneously a in addition purpose IP address is replaced with IP3 by VIP1; Target MAC (Media Access Control) address replaces with MAC3, is transmitted to the port of appointment the VC3 from the P3 port.
Wherein, The information of MAC3 is added in step S701 in the replacement forwarding-table item; The information of 60000 ports then in step S605 by the VM server just to the network switching equipment; Be stored in equally in the replacement forwarding-table item; In above-mentioned replacement process, directly from the replacement forwarding-table item, extract this information and get final product.
The quadravalence section, after the transmission of VC1 and VC3 request monitor data, withdraw from process accordingly.
As preceding, stop the order difference of indicating accordingly owing to send according to VC equipment, also can there be difference in corresponding processing procedure, and therefore, the embodiment of the invention specifically through following two kinds of situation, illustrates corresponding processing procedure respectively.
Situation one, the network switching equipment are received the indication that stops of VC1 transmission earlier, and corresponding schematic flow sheet specifically may further comprise the steps as shown in Figure 8:
The GMP that step S801, the network switching equipment receive the VC1 transmission stops request message.
It is unavailable that step S802, the network switching equipment are provided with the P1 port.
After the processing of accomplishing this step; Still preserve the replacement forwarding-table item that comprises VC1 and VC3 information in the network switching equipment; Promptly keep the content of original replacement forwarding-table item constant, just the P1 port is set to the disable state, no longer transmits operation through this port.
When the network switching equipment after this step continues to receive the monitor data of passage 1 of EC1; The network switching equipment no longer carries out monitor data through the P1 port to VC1 and transmits; Promptly no longer carry out duplicating of monitor data; But after the purpose IP address of monitor data replaced with IP3, directly transmit to VC3 through the P3 port.
The GMP that step S803, the network switching equipment receive the VC3 transmission stops request message.
Step S804, the network switching equipment replace with VIP1 with the source IP address that this GMP stops request message, are transmitted to the VM server then.
Step S805, VM server send the corresponding connection of Release message release to the passage 1 of EC1.
Step S806, VM server send Release message to VIP1.
In this Release message, purpose IP address is VIP1.
Step S807, the network switching equipment replace with IP3 with the purpose IP address of this Release message, are transmitted to VC3 then.
When the network switching equipment listens to the VM server response when giving the Release message of VIP1 address; Search the replacement forwarding-table item of having stored; Find that the P1 port is in the disable state; And the P3 port status is normal; Therefore; VIP1 is replaced with the IP address (IP3) of VC3, and forward from the P3 port.
Step S808, VC3 return OK message (response message of Release message) to the VM server.
Step S809, the network switching equipment replace with VIP1 with the source IP address of this OK message, are transmitted to the VM server then.
The network switching equipment continue to be monitored institute's interactive messages between VC3 and the VM server, when listening to the OK message of VC3 response, searches the replacement forwarding-table item, and the source IP address IP3 of this OK message is replaced to VIP1, and to the VM server forwards.
Step S810, VM server send GMP to VIP1 and stop response message.
Step S811, the network switching equipment replace with IP3 with the purpose IP address that this GMP stops response message, are transmitted to VC3 then.
So far, after stopped the request process of VC1, continued to accomplish the protocol interaction process that the VC2 request stops to obtain passage 1 monitor data of EC1, accomplished the processing of withdrawing from of VC1 and VC3 passage 1 monitor data of EC1.
After above-mentioned withdrawing from finished dealing with; The five-tuple information of the local storage of network switching equipment deletion, replacement forwarding-table item; And the corresponding message responded to VIP1 of VM server, discharge VIP1, make it can be continued on for the request process of other monitor datas.
Above-mentioned processing guaranteed withdraw from finish dealing with after; The deletion of relevant information in the network switching equipment; And the release of corresponding virtual address resource; Avoid after VC1 and VC3 all withdraw from the request process to the monitor data of the passage 1 of EC1; Continuation takies related resource, and the storage resources in the virtual address resource and the network switching equipment can be recycled.
Situation two, the network switching equipment are received the indication that stops of VC3 transmission earlier, and corresponding schematic flow sheet specifically may further comprise the steps as shown in Figure 9:
The GMP that step S901, the network switching equipment receive the VC3 transmission stops request message.
The relevant information that step S902, the network switching equipment are deleted VC3 at the replacement forwarding-table item.
After the processing of accomplishing this step, what preserve in the network switching equipment is the replacement forwarding-table item that only comprises VC1 information, the state when promptly having returned to the monitor data of the passage 1 that has only VC1 request EC1 among the step S605.
When the network switching equipment after this step continues to receive the monitor data of passage 1 of EC1; The network switching equipment no longer carries out monitor data through the P3 port to VC3 and transmits; Promptly no longer carry out duplicating of monitor data; But after the purpose IP address of monitor data replaced with IP1, directly transmit to VC1 through the P1 port.
Through above-mentioned processing, current system mode has been equivalent to get back to the state among the step S609, promptly has only the monitor data of the passage 1 of VC1 request EC1.
After this, stop request message if the network switching equipment receives the GMP of VC1 transmission, so, corresponding processing procedure is consistent to the processing procedure of step S620 with step S612, in this no longer repeat specification.
Need further be pointed out that; In above-mentioned processing procedure; The network switching equipment is equivalent to the agency of VC equipment concerning the VM server; Therefore; For the VM server; No matter the monitor data in what the same monitor data of VC device request sources is arranged below the network switching equipment, the VM server can only be seen the monitoring relation that a virtual ip address is corresponding, promptly can only see the monitoring relation of the passage 1 of VIP1/VC1 and EC1.
And in existing technical scheme, if VC1, VC2, VC3 ask the monitor data of the passage 1 of EC1, so, the monitoring relation of seeing on the VM server will have 3, promptly IP1/VC1, IP2/VC2, IP3/VC3 respectively with the monitoring relation of EC1 passage 1.
In the technical scheme that the embodiment of the invention proposed, the VM server can't see real monitoring relation, and the advantage of bringing is the protocol interaction process of having avoided between VM server and a plurality of VC equipment, and has accelerated the speed of other VC equipment program request monitor datas.
But, also can learn real monitoring relation if hope the VM server, so, can realize such operation through increasing a special GMP message in the technical scheme that the embodiment of the invention proposed, concrete processing procedure is following:
Same with reference to aforesaid specific embodiment; In the process of the monitor data of the passage 1 of VC1 request EC1; The network switching equipment is handled to the processing procedure of step S609 according to step S601; After accomplishing corresponding the processing; Set up the monitoring relation of the passage 1 of VIP1/VC1 and EC1 in the VM server, the information of VC1 wherein brings VM server in aforesaid message interaction process.
On this basis; If the network switching equipment continues to receive the GMP request message of monitor data of the passage 1 of VC3 request EC1; The network switching equipment will be handled to the processing procedure of step S704 according to step S701; But after accomplishing corresponding the processing; The network switching equipment sends special GMP message to the VM server; Corresponding monitoring relation is set up in request; The identification information of the passage 1 of the EC1 that carries the identification information of VC3 in this GMP message and asked; After the VM server is received this special GMP message; Monitoring relation at the passage 1 of original VIP1/VC1 and EC1 is added sub-instance, and the monitoring of setting up VIP1/VC3 and EC1 passage 1 concerns.
Like this, the VM server just can be grasped current in esse monitoring relation.
And the situation one of corresponding aforesaid quadravalence section; When the network switching equipment receives VC1 earlier need withdraw from the request message of current monitor data transmission course the time; Because the VM server is the VIP1/VC1 that formerly sets up and the monitoring of the passage 1 of EC1 concerns; It promptly is the passage 1 pairing main monitoring relation of VIP1 and EC1; Therefore; Under the situation that has other sub-instances (passage 1 of VIP1/VC3 and EC1); The network switching equipment and VM server need further not operated corresponding monitoring relation; Under the situation that all sub-instances have all been deleted, just can delete above-mentioned main monitoring relation.
But the situation two of corresponding aforesaid quadravalence section; When the network switching equipment receives VC3 earlier need withdraw from the request message of current monitor data transmission course the time; Because the monitoring of VIP1/VC3 and EC1 passage 1 relation is a sub-instance; So; The network switching equipment need send special GMP message to the VM server, respectively the VIP1/VC3 that is stored in the request deletion VM server and the monitoring relation of EC1 passage 1.The VM server is after receiving corresponding GMP message, and corresponding carrying out monitored the deletion of relation accordingly, guarantees that the record of monitoring relation is consistent with actual conditions.
It should be noted that in above-mentioned process the VM server receives that special GMP message is set up or deletion is monitored when concerning accordingly, need not carry out alternately with EC equipment or VC equipment.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention; Can be virtual by the process that the network switching equipment obtains monitor data to same front end encoding device with each VC equipment be a virtual ip address obtains process from monitor data to this front end encoding device; Thereby; The process that makes each VC equipment obtain monitor data to same front end encoding device only need take the transmission path resource of a monitor data; Saving is for the shared bandwidth resources of the transmission course of the monitor data of same front end encoding device; Break the restriction of bandwidth in the prior art or way, solve the problem that the VC equipment that causes therefrom is restricted the acquisition process of monitor data.
In order to realize technical scheme of the present invention; The invention allows for a kind of network switching equipment; Be applied to comprise at least in the video monitoring system of VM server, the network switching equipment, a plurality of front end encoding device and VC equipment; This network switching equipment is connected with a plurality of VC equipment through different ports respectively; Shown in structural representation Figure 10 of this network switching equipment, specifically comprise:
Receive sending module 101, be used for passing through respectively different port and a plurality of VC equipment, and the VM server carries out the transmission of interacting message and monitor message;
Virtual ip address administration module 102; When receiving sending module 101 and receive the request of the monitor data that obtains the first front end encoding device that a VC sends, from the virtual ip address section of the network switching equipment, choose pairing first virtual ip address of the first front end encoding device through first port;
Replacement module 103; Be used for replacing the source IP address of the IP address of a VC as the request of the monitor data that obtains the first front end encoding device with the virtual ip address administration module 102 first selected virtual ip address; And notice receives the request of obtaining said monitor data of sending module 101 after the VM server sends replacement; Simultaneously in local record the one VC MAC Address; The one VC IP address; First virtual ip address; First corresponding relation of first port; And receive purpose IP address when being the monitor data of first virtual ip address receiving sending module 101; The purpose IP address of monitor data is replaced with the IP address of a VC by first virtual ip address; Purpose MAC field is inserted a VC MAC Address; And notice reception sending module 101 sends to a VC through first port with this monitor data; When follow-up reception sending module 101 receives the same monitor data of acquisition request that the 2nd VC sends and a VC through second port; In local record the 2nd VC MAC Address; The 2nd VC IP address; First virtual ip address; Second corresponding relation of second port, and notice to receive sending module 101 be that the monitor data of first virtual ip address also sends to the 2nd VC with the purpose IP address that receives.
Wherein, replacement module 103 also is used for:
When receiving sending module 101 and obtain the request of monitor data of the first front end encoding device by second port stopping of receiving that the 2nd VC sends earlier; Delete second corresponding relation; And notify said reception sending module 101 to stop to send monitor data to the 2nd VC; When follow-up reception sending module 101 by first port receive that a VC sends stop to obtain the request of monitor data the time; The IP address of replacing a VC with first virtual ip address is as the source IP address of the request that stops to obtain said monitor data; And the request that stop to obtain monitor data of notice reception sending module 101 after the VM server sends replacement, and delete first corresponding relation;
When receiving sending module 101 and obtain the request of monitor data of the first front end encoding device through first port stopping of receiving that a VC sends earlier; To the first correspondence setting invalid flag, and notice reception sending module 101 stops to send monitor data to a VC; When follow-up reception sending module 101 through second port receive that the 2nd VC sends stop to obtain the request of monitor data the time; The IP address of replacing the 2nd VC with first virtual ip address is as the source IP address of the request that stops to obtain monitor data; And notify reception sending module 101 to stop to obtain the request of monitor data, and delete first corresponding relation and second corresponding relation to the transmission of VM server.
In concrete enforcement scene, receive sending module 101, also be used for:
Be source IP address with first virtual ip address; Send the request of the monitor data that obtains the first front end encoding device to the VM server after; Send a VC of true request monitor data and the information of the 2nd VC to the VM server, make the real monitoring relation of record on the VM server.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention; Can be virtual by the process that the network switching equipment obtains monitor data to same front end encoding device with each VC equipment be a virtual ip address obtains process from monitor data to this front end encoding device; Thereby; The process that makes each VC equipment obtain monitor data to same front end encoding device only need take the transmission path resource of a monitor data; Saving is for the shared bandwidth resources of the transmission course of the monitor data of same front end encoding device; Break the restriction of bandwidth in the prior art or way, solve the problem that the VC equipment that causes therefrom is restricted the acquisition process of monitor data.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product; It (can be CD-ROM that this software product can be stored in a non-volatile memory medium; USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) each implements the described method of scene to carry out the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is a preferred sketch map of implementing scene, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device of implementing in the scene can be distributed in the device of implementing scene according to implementing scene description, also can carry out respective change and be arranged in the one or more devices that are different from this enforcement scene.The module of above-mentioned enforcement scene can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of implementing scene just to description.
More than disclosed only be several practical implementation scene of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.