CN105721833B - A kind of society's monitoring resource access method and device - Google Patents
A kind of society's monitoring resource access method and device Download PDFInfo
- Publication number
- CN105721833B CN105721833B CN201610151532.4A CN201610151532A CN105721833B CN 105721833 B CN105721833 B CN 105721833B CN 201610151532 A CN201610151532 A CN 201610151532A CN 105721833 B CN105721833 B CN 105721833B
- Authority
- CN
- China
- Prior art keywords
- society
- access
- address
- monitoring resource
- box
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of society's monitoring resource access method and device, the described method includes: when access box receives the Address Resolution Protocol ARP request message that access server is sent by tunnel, and when IP address of the purpose IP address of ARP request message to access the social society's monitoring resource monitored in resource network that box is accessed, the arp reply message of MAC address of the box to access server return including access box is accessed;When access box receives the ARP request message that society's monitoring resource is sent, and the purpose IP address of ARP request message be access server tunnel interface address when, access box to society monitoring resource return include access box MAC Address arp reply message.Using the embodiment of the present invention can under the premise of not changing user network, realize society monitoring resource access, and avoid access box can become user network fault point or bandwidth bottleneck point.
Description
Technical field
The present invention relates to technical field of video monitoring more particularly to a kind of society's monitoring resource access methods and device.
Background technique
With the continuous propulsion and deep, the construction scale and coverage area of video monitoring probe of video monitoring system construction
It is growing, wherein by social unit (Party and government offices, enterprises and institutions, public organization and other social organizations and citizen
People) voluntarily investment construction video monitoring probe account for total monitoring probe quantity 92.5%, greatly ensureing unit safe
Meanwhile it effectively compensating for common monitoring point inadequate resource, monitoring the problems such as blind spot is more.
The video monitoring system quantity of social unit construction is more, but form dissipate, not architectonical, do not network, independently of each other, one
Determine the problems such as there is video monitoring resource-sharing hardly possiblies, repeated construction in degree.
In view of the above-mentioned problems, in existing video monitoring system, it is (following by using dedicated social resources access box
Referred to as access box), society's monitoring resource is accessed into public administration platform.And common access way is generally comprised and will be accessed
Box is serially connected between DVR (Digital Video Recorder, digital video recorder) and interchanger or side hangs over friendship
On changing planes, and static routing is added on switches.
However practice discovery, above-mentioned society monitor in resource access way, and access case is serially connected in DVR and interchanger
Between mode can change user network, and access box and may become fault point and bandwidth bottleneck point in user network;
Mode is hung by access box and needs to do routing configuration on subscriber exchange, is increased by one under the message that destination address is proxy for equipment
It jumps to access box, and is published in user network, that is, be also required to change user network.
Summary of the invention
The present invention provides a kind of society's monitoring resource access method and device, to solve existing society's monitoring resource access side
The problem of changing user network is needed in case.
According to a first aspect of the embodiments of the present invention, a kind of society's monitoring resource access method is provided, applied to including connecing
Enter the video monitoring system of server, access box and society's monitoring resource network, the access box is in such a way that side is hung
It is linked into society's monitoring resource network, establishing between the access box and the access server has tunnel connection, institute
The interface IP address for stating tunnel both ends is the social internet protocol address monitored in resource network;The described method includes:
When access box receives the Address Resolution Protocol ARP request message that access server is sent by tunnel, and institute
State the social society's monitoring money monitored in resource network that the purpose IP address of ARP request message is accessed by the access box
When the IP address in source, it includes the media access control for accessing box that the access box is returned to the access server
The arp reply message of MAC Address, so that the access server generates the MAC Address of the access box and the society supervises
The corresponding ARP entry of IP address of resource is controlled, and message is sent to society's monitoring resource according to the ARP entry;
When the access box receives the ARP request message that society's monitoring resource is sent, and the ARP request
When the purpose IP address of message is the tunnel interface address of the access server, the access box is provided to society's monitoring
Source returns to the arp reply message of the MAC Address including the access box, so that society's monitoring resource generates the access
The MAC Address of box ARP entry corresponding with the tunnel interface address of the access server, and according to the ARP entry to institute
It states access server and sends message.
According to a second aspect of the embodiments of the present invention, a kind of society's monitoring resource access method is provided, applied to including connecing
Enter the video monitoring system of server, access box and society's monitoring resource network, the access box is in such a way that side is hung
It is linked into society's monitoring resource network, establishing between the access box and the access server has tunnel connection, institute
The interface IP address for stating tunnel both ends is the social internet protocol address monitored in resource network;The described method includes:
Message is sent when access server needs to monitor resource to society, and does not inquire the IP of society's monitoring resource
When the corresponding Address Resolution Protocol ARP list item in address, the access server is by tunnel to belonging to society's monitoring resource
The target access box transmission APR request of society's monitoring resource network access, so that it includes certainly that target access box, which returns,
The ARP response message of body MAC address;
The access server accesses the MAC Address of box and the IP address of society's monitoring resource according to the target
Corresponding ARP entry is generated, and message is sent to society's monitoring resource according to the ARP entry.
According to a third aspect of the embodiments of the present invention, a kind of society's monitoring resource access device is provided, applied to including connecing
In the access box for entering the video monitoring system of server, access box and society's monitoring resource network, the access box
Society's monitoring resource network is linked into such a way that side is hung, establishing between the access box and the access server has
Tunnel connection, the interface IP address at the tunnel both ends are the internet protocol address in society's monitoring resource network;Institute
Stating device includes:
Receiving unit, for receiving the ARP request message of access server or society's monitoring resource transmission;
Response unit, for receiving the address resolution protocol that access server is sent by tunnel when the receiving unit
ARP request message, and society's monitoring resource network that the purpose IP address of the ARP request message is accessed by the access box
When the IP address of society's monitoring resource in network, it includes the access box that the access box is returned to the access server
MAC address ARP response message so that the access server generates the MAC of the access box
Location ARP entry corresponding with society's monitoring IP address of resource, and sent out according to the ARP entry to society's monitoring resource
It delivers newspaper text;When the receiving unit receives the ARP request message that society's monitoring resource is sent, and the ARP request report
When the purpose IP address of text is the tunnel interface address of the access server, the access box monitors resource to the society
The arp reply message of the MAC Address including the access box is returned to, so that society's monitoring resource generates the access case
The MAC Address ARP entry corresponding with the tunnel interface address of the access server of son, and according to the ARP entry to described
Access server sends message.
According to a fourth aspect of the embodiments of the present invention, a kind of society's monitoring resource access device is provided, applied to including connecing
In the access server for entering the video monitoring system of server, access box and society's monitoring resource network, the access case
Son is linked into society's monitoring resource network in such a way that side is hung, and establishes between the access box and the access server
There is tunnel connection, the interface IP address at the tunnel both ends is the internet protocol address in society's monitoring resource network;
Described device includes:
Transmission unit for sending message to society's monitoring resource when needs, and does not inquire the society and monitors resource
IP address corresponding Address Resolution Protocol ARP list item when, provided by tunnel to society monitoring belonging to society's monitoring resource
The target access box of source network access sends APR request, so that it includes itself media interviews that target access box, which returns,
Control the arp reply message of MAC Address;
Receiving unit, the arp reply message sent for receiving the target access box;
Generation unit, for accessing the MAC Address of box and the IP address of society's monitoring resource according to the target
Generate corresponding ARP entry;
The transmission unit is also used to send message to society's monitoring resource according to the ARP entry.
Using the embodiment of the present invention, society's monitoring resource network is accessed by the way that box will be accessed in such a way that side is hung, and
It accesses between box and access server and establishes using the IP address in society's monitoring resource network as the tunnel of tunnel interface address
Connection, and ARP proxy function is enabled on access box, when access box receives the purpose IP address of access server transmission
For society monitoring resource IP address ARP request when or receive society monitoring resource send purpose IP address be access clothes
When the ARP request message of the tunnel interface address of business device, access box responds arp reply message as proxy ARP, so that access
Server or society's monitoring resource send according to the ARP entry and report according to the corresponding ARP entry of arp reply message generation
Text realizes the access of society's monitoring resource under the premise of not changing user network, and avoiding access box can be as use
The fault point of family network or bandwidth bottleneck point.
Detailed description of the invention
Fig. 1 is a kind of network architecture schematic diagram of society's monitoring resource access provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of society's monitoring resource access method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another society's monitoring resource access method provided in an embodiment of the present invention;
Fig. 4 is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of society's monitoring resource access device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another society's monitoring resource access device provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another society's monitoring resource access device provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of society's monitoring resource access device provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another society's monitoring resource access device provided in an embodiment of the present invention.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real
The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present invention
Case is described in further detail.
The network architecture being first applicable in below the embodiment of the present invention is described.
Referring to Figure 1, Fig. 1 is a kind of network architecture signal of society's monitoring resource access provided in an embodiment of the present invention
Figure.As shown in Figure 1, the network architecture schematic diagram may include access server, access box and society's monitoring resource network;
Wherein, access box is linked into society's monitoring resource network in such a way that side is hung, and accesses between box and access server and build
Vertical tunnel connection, the interface IP address at tunnel both ends are IP (Internet Protocol, interconnection in society's monitoring resource network
FidonetFido) address.In the network architecture, access box enables ARP (Address Resolution Protocol, address resolution
Agreement) agent functionality, when access box receives the society's prison of access server transmission monitored in resource network for society
The ARP request of the IP address of resource is controlled, or with receiving the tunnel interface for access server that society's monitoring resource is sent
When the ARP request of location, accesses box and answered with MAC (Media Access Control, media access control) the progress ARP of itself
It answers, access server is made to generate IP address ARP entry corresponding with the access MAC Address of box or the society of society's monitoring resource
The tunnel interface address ARP entry corresponding with the access MAC Address of box of the access server of resource generation, and root can be monitored
Message transmission is carried out according to the ARP entry of generation, under the premise of not changing user network, realizes connecing for society's monitoring resource
Enter, and since access box accesses society's monitoring resource network in such a way that side is hung, the fault point of user network will not be become
Or bandwidth bottleneck point.
Based on the network architecture shown in FIG. 1, the embodiment of the invention provides a kind of society's monitoring resource access methods.It please join
See that Fig. 2, Fig. 2 are a kind of flow diagram of society's monitoring resource access method provided in an embodiment of the present invention, as shown in Fig. 2,
Society monitoring resource access method may comprise steps of:
Step 201 receives the ARP request message that access server sent by tunnel when access box, and the ARP is asked
The IP address for the society's monitoring resource in society's monitoring resource network for asking the purpose IP address of message to be accessed for access box
When, it includes the arp reply message for accessing the MAC Address of box that access box is returned to access server, so that access server
It generates the MAC Address of access box and society monitors the corresponding ARP entry of the IP address of resource, and according to the ARP entry to society
Resource can be monitored and send message.
In the embodiment of the present invention, when access server needs society's monitoring resource into society's monitoring resource network (such as
NVR, hereinafter referred to as target society monitor resource) send message when, access server can be inquired first with the presence or absence of the target society
The corresponding ARP entry of resource can be monitored, if it does not exist, access server can be by the tunnel between access box to access
Box sends the ARP request of the IP address for target society monitoring resource.
After access box receives the ARP request of access server transmission, it is found that the purpose IP address of the ARP request is certainly
The IP address of target society monitoring resource in society's monitoring resource network of body access, at this point, access box can be used as ARP generation
Reason responds arp reply message to access server, includes the MAC Address of access box itself in the ARP response message.
It, can be raw according to the ARP response message after access server receives the arp reply message that access box is sent
At access box MAC Address and target society monitoring resource the corresponding ARP entry of IP address, and according to the ARP entry to
Target society monitors resource and sends message.Wherein, access server sends message to target society monitoring resource according to ARP entry
When, tunnel can be first passed through, message is now sent to access box, be turned message according to the purpose IP address of message by access box
Issue target society monitoring resource.
As an alternative embodiment, in embodiments of the present invention, accessing the tunnel between box and access server
Road is established
It accesses box and obtains two local ip address from society's monitoring resource network that itself is accessed;
Access box is connect using the tunnel of two local ip address as local tunnel interface address and access server respectively
Port address is established tunnel with access server and is connect.
It in this embodiment, can be with after access box is linked into society's monitoring resource network in such a way that side is hung
Two local ip address are obtained from society's monitoring resource network, such as pass through DHCP (Dynamic Host Configuration
Protocol, dynamic host configuration protocol) mode of agreement obtains IP address, and establishes tunnel with access server and connect, and it will
One in two local ip address got is used as local tunnel address, using another access server of distributing to as access
The tunnel interface address of server.
Further, in embodiments of the present invention, after establishing tunnel connection between access box and access server,
The society's monitoring money for including in society's monitoring resource network that access box accesses can be sent to access server by tunnel
Source information, so that access server is according to the social monitoring information maintenance monitoring resource list item received;Wherein, which monitors
Resource information includes the device id and IP address of society's monitoring resource;It include society's monitoring resource in society's monitoring resource list item
Device id, IP address and corresponding server interface, in turn, when access server need to society monitoring resource send message
When, can according to self maintained society monitoring resource list item determine target society monitoring resource IP address and corresponding clothes
Business device interface, and message is sent by the corresponding tunnel of the server interface.
Step 202 monitors the ARP request message that resource is sent, and the ARP request report when access box receives society
When the purpose IP address of text is the tunnel interface address of access server, it includes access that access box is returned to society's monitoring resource
The arp reply message of the MAC Address of box, so that society's monitoring resource generates the MAC Address and access server of access box
The corresponding ARP list item in tunnel interface address, and according to the ARP entry to access server send message.
In the embodiment of the present invention, when society's monitoring resource needs to send message, such as society's monitoring resource to access server
Receive access server transmission message after send response message when, society monitoring resource can inquire with the presence or absence of access clothes
The corresponding ARP entry of business device, if it does not exist, then society monitoring resource can be broadcasted to be directed to and be connect in society's monitoring resource network
Enter the ARP request message of the tunnel interface address of server.
After access box receives the ARP request message, it is found that the purpose IP address of the ARP request message is access service
The tunnel interface address of device monitors resource response arp reply message to society at this point, access box can be used as ARP proxy, should
Arp reply message includes the address MAC for accessing box itself.
It, can be according to the ARP response message after society's monitoring resource receives the arp reply message that access box is sent
The corresponding ARP entry in tunnel interface address of the MAC Address and access server of access box is generated, and according to the ARP entry
Message is sent to access server.Wherein, the message that society's monitoring resource is sent according to ARP entry can first be sent to access case
Message is sent to access server by tunnel by access box by son.
As it can be seen that accessing society's monitoring resource in such a way that side is hung by the way that box will be accessed in method flow shown in Fig. 2
Network, and established using the IP address in society's monitoring resource network as tunnel interface between access box and access server
The tunnel of location connects, and enabling ARP proxy function realizes society under the premise of not changing user network on access box
The access of resource can be monitored, and avoid access box to become fault point or the bandwidth bottleneck point of user network
Based on the network architecture shown in FIG. 1, the embodiment of the invention provides another society's monitoring resource access methods.Please
Referring to Fig. 3, Fig. 3 is the flow diagram of another society's monitoring resource access method provided in an embodiment of the present invention, such as Fig. 3 institute
Show, society monitoring resource access method may comprise steps of:
Step 301 sends message when access server needs to monitor resource to society, and does not inquire society monitoring money
When the corresponding ARP entry of the IP address in source, access server monitors the monitoring resource of society belonging to resource to the society by tunnel
The target access box of network insertion sends APR request, so that the ARP that target access box return includes own MAC address is answered
Answer message.
In the embodiment of the present invention, when access server need to society monitoring resource network in society monitoring resource (with
Down be known as target society monitor resource) send message when, access server can first inquire with the presence or absence of the target society monitor
The corresponding ARP entry of resource, if it does not exist, access server can by with access box (referred to herein as target access case
Son) between tunnel to target access box send for the target society monitoring resource IP address ARP request.
After target access box receives the ARP request of access server transmission, the purpose IP address of the ARP request is found
The address IP that resource is monitored for the target society in society's monitoring resource network of itself access, at this point, target accesses box meeting
As ARP proxy, arp reply message is responded to access server, includes target access box itself in the arp reply message
MAC Address.
Step 302, access server access the MAC Address of box and the IP address life of society's monitoring resource according to target
Message is sent to society's monitoring resource at corresponding ARP entry, and according to the ARP entry.
In the embodiment of the present invention, after access server receives the arp reply message that target access box is sent, Ke Yigen
The MAC Address of target access box and the corresponding ARP table of IP address of target society monitoring resource are generated according to the arp reply message
, and message is sent to target society monitoring resource according to the ARP entry.Wherein, access server is according to ARP entry to target
When society's monitoring resource sends message, tunnel can be first passed through, message is now sent to target access box, box is accessed by target
Target society monitoring resource is forwarded the message to according to the purpose IP address of message.
Further, it is contemplated that when there is multiple society's monitoring resource network access public administration platforms, different accesses
Box be access server distribution tunnel interface address there may be repeat, while different society monitoring resource network in society
The IP address that resource can be monitored is also likely to be present repetition, thus, as an alternative embodiment, in the embodiment of the present invention
In, when access server has tunnel connection, and at least two accesses box difference at least two access box foundation respectively
When accessing different society's monitoring resource networks in a manner of other hang, can also include:
Access server is respectively that at least two access boxes generate corresponding example, and establish example and connect at least two
Enter the binding relationship of the corresponding tunnel interface of box;
Society's monitoring resource table is generated according to the binding relationship, and society's monitoring resource information that access box is sent
?;Wherein, society monitoring resource list item includes device id, affiliated example, IP address and the corresponding clothes of society's monitoring resource
Business device interface.
As an example it is assumed that society monitors resource network 1 and society's monitoring resource network 2 is required to access public administration and puts down
Platform, it is access box 1, the access box hung by society's monitoring resource network 2 that society, which monitors the access box hung by resource network 1,
To access box 2.Access box 1 and access box 2 are that the tunnel interface address of access server distribution is
192.168.1.5。
Access server and access box are established after tunnel connect, can be respectively access box 1 and the access generation pair of box 2
The example answered such as accesses the corresponding social resources example 1 of box 1, the corresponding social resources example 2 of access box 2, and establish example with
The binding relationship of corresponding tunnel interface, such as 1 binding server interface PPP0 of social resources example, social resources example 2 is bound
Server interface PPP1.
Access box 1 (access box 2) and access server are established after tunnel connect, are accessed box 1 and (are accessed box
2) the society's monitoring resource information for including in society's monitoring resource network 1 (society's monitoring resource network 2) can be sent to access
Server, so that access server generates corresponding social resources list item.
Assuming that society monitoring resource network 1 in include DVR1 and DVR2, IP address be respectively 192.168.1.2 and
192.168.1.3;Society monitoring resource network 2 in include DVR3 and DVR4, IP address be respectively 192.168.1.2 and
192.168.1.3, then the social resources list item that access server generates can be as shown in table 1:
Table 1
Device id | Affiliated example | IP address | Interface |
DVR1 | Social resources example 1 | 192.168.1.2 | PPP0 |
DVR2 | Social resources example 1 | 192.168.1.3 | PPP0 |
DVR3 | Social resources example 2 | 192.168.1.2 | PPP1 |
DVR4 | Social resources example 2 | 192.168.1.3 | PPP1 |
Wherein, according to the information recorded in table 1, when access server needs and the DVR1 in society's monitoring resource network 1
When communication, inquiring the corresponding example of the DVR is social resources example 1, thus routing of the access server in social resources example 1
Corresponding routing is searched in table, message can be handled in social resources example 1, such as when the destination IP for needing transmission to be directed to DVR1
When the ARP request message of address, access server can be sent to corresponding access box by the corresponding tunnel interface PPP0 and (be connect
Enter box 1).
Similarly, the message that access server is received by interface PPP0 can also be handled in social resources example 1, and
The message received by interface PPP1 can be handled in social resources example 2.
In order to make those skilled in the art more fully understand technical solution provided in an embodiment of the present invention, below with reference to specific
Application scenarios are illustrated technical solution provided in an embodiment of the present invention.
Fig. 4 is referred to, Fig. 4 is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, such as Fig. 4 institute
Show, may include access server (access server of public administration platform), access box and society in the application scenarios
Monitor resource network;Wherein, society monitoring resource network in include DVR1 and DVR2, IP address be respectively 192.169.1.2 and
192.168.1.3 gateway ip address 192.168.1.1.
Society's monitoring resource access process under the application scenarios is as follows:
1, access box is linked into society's monitoring resource network in such a way that side is hung, and starts DHCP client (client
End), 2 local ip address are obtained from society's monitoring resource network, such as 192.168.1.4 and 192.168.1.5, mask is
255.255.255.0 gateway 192.168.1.1, and by 192.168.1.4,255.255.255.0/ therein
192.168.1.1 local interface address, mask and gateway are used as.
2, access box is established tunnel with access server and is connect, and 192.168.1.4 is multiplexed with local tunnel address,
192.168.1.5/255.255.255.0 is distributed into tunnel interface address of the access server as access server.
3, it accesses and starts ARP proxy function on box.
4, DVR1 (192.168.1.2) is given when access server (192.168.1.5) needs to send message, and do not inquired
192.168.1.2 when corresponding ARP entry, access server can send the ARP for 192.168.1.2 on tunnel interface and ask
After asking message, ARP request message to reach access box by tunnel, access box responds arp reply message as ARP proxy,
The arp reply message includes the MAC Address for accessing box.
5, after access server receives arp reply message, the MAC Address for accessing box and 192.168.1.2 pairs are generated
The ARP entry answered, and the message for being sent to DVR1 is sent to by access box according to the ARP entry, access box receives this
After message, DVR1 is forwarded it to according to purpose IP address (192.168.1.2).
6, after DVR1 receives message, before sending response message, if with not inquiring the tunnel interface of access server
The corresponding ARP entry in location (192.168.1.5) is then also required to first broadcast the ARP request message for 192.168.1.5;Access
After box receives the ARP request message, arp reply message can be responded as ARP proxy, include connecing in the arp reply message
Enter the MAC Address of box.
7, after DVR1 receives arp reply message, MAC Address and the 192.168.1.5 for generating access box are corresponding
ARP entry, and the message for being sent to access server is sent to access box, it is forwarded it to by access box by tunnel
Access server.
By above description as can be seen that in embodiments of the present invention, being accessed in such a way that side is hung by the way that box will be accessed
Society's monitoring resource network, and establish between access box and access server with the IP address in society's monitoring resource network
It is connected for the tunnel of tunnel interface address, and enables ARP proxy function on access box, when access box receives access
Server send purpose IP address be society monitoring resource IP address ARP request when or receive society monitoring resource hair
When the purpose IP address sent is the ARP request message of the tunnel interface address of access server, access box is rung as proxy ARP
Arp reply message is answered, so that access server or society's monitoring resource generate corresponding ARP entry according to arp reply message, and
Message is sent according to the ARP entry, under the premise of not changing user network, realizes the access of society's monitoring resource, and keep away
Fault point or the bandwidth bottleneck point of user network can be become by having exempted from access box.
Fig. 5 is referred to, is a kind of structural schematic diagram of society's monitoring resource access device provided in an embodiment of the present invention,
In, society monitoring access device can be applied to the access box in the network architecture shown in Fig. 1, as shown in figure 5, the society supervises
Controlling resource access device may include:
Receiving unit 510, for receiving the ARP request message of access server or society's monitoring resource transmission;
Response unit 520, for being solved when the receiving unit 510 receives access server by the address that tunnel is sent
Agreement ARP request message is analysed, and the society that the purpose IP address of the ARP request message is accessed by the access box monitors
When the IP address of society's monitoring resource in resource network, it includes described connect that the access box is returned to the access server
Enter the arp reply message of the MAC address of box, so that the access server generates the access box
MAC Address ARP entry corresponding with society's monitoring IP address of resource, and monitored according to the ARP entry to the society
Resource sends message;When the receiving unit receives the ARP request message that society's monitoring resource is sent, and the ARP
When the purpose IP address of request message is the tunnel interface address of the access server, the access box is supervised to the society
The arp reply message that resource returns to the address MAC including the access box is controlled, so that society's monitoring resource generates institute
The MAC Address ARP entry corresponding with the tunnel interface address of the access server of access box is stated, and according to the ARP table
Item sends message to the access server.
Referring to Figure 6 together, the structure for another society's monitoring resource access device provided in an embodiment of the present invention is shown
It is intended to, on the basis of aforementioned embodiment illustrated in fig. 5, the monitoring resource access device of society shown in Fig. 6 can also wrap the embodiment
It includes:
Acquiring unit 530, for obtaining two local IP from society's monitoring resource network that the access box accesses
Address;
Unit 540 is established, for respectively using described two local ip address as local tunnel interface address and access clothes
The tunnel interface address of business device, establishes tunnel with the access server and connect.
Referring to Figure 7 together, the structure for another society's monitoring resource access device provided in an embodiment of the present invention is shown
It is intended to, (Fig. 7 on the basis of embodiment shown in Fig. 6 to optimize on the basis of earlier figures 5 or 6 illustrated embodiment for the embodiment
For), the monitoring resource access device of society shown in Fig. 6 can also include:
Transmission unit 550 is supervised for sending the society that the access box accesses to the access server by tunnel
The society's monitoring resource information for including in control resource network, so that the access server is safeguarded according to the social monitoring information
Society's monitoring resource list item;Wherein, society's monitoring resource information includes the device id and IP address of society's monitoring resource;Institute
Stating in society's monitoring resource list item includes social device id, IP address and the corresponding server interface for monitoring resource.
Fig. 8 is referred to, is a kind of structural schematic diagram of society's monitoring resource access device provided in an embodiment of the present invention,
In, society monitoring access device can be applied to the access server in the network architecture shown in Fig. 1, as shown in figure 8, the society
Monitoring resource access device may include:
Transmission unit 810 for sending message to society's monitoring resource when needs, and does not inquire the society and monitors money
When the corresponding Address Resolution Protocol ARP list item of the IP address in source, by tunnel to society monitoring belonging to society's monitoring resource
The target access box of resource network access sends APR request, so that it includes that itself media is visited that target access box, which returns,
Ask the arp reply message of control MAC Address;
Receiving unit 820, the arp reply message sent for receiving the target access box;
Generation unit 830, for accessing the MAC Address of box and the IP of society's monitoring resource according to the target
Location generates corresponding ARP entry;
The transmission unit 810 is also used to send message to society's monitoring resource according to the ARP entry.
In an alternative embodiment, the access server has tunnel connection, institute at least two access box foundation respectively
It states at least two access boxes and accesses different society's monitoring resource networks in a manner of other hang respectively;
Generation unit 830 is also used to the respectively described at least two accesses box and generates corresponding example;
Correspondingly, also referring to Fig. 9, for another society's monitoring resource access device provided in an embodiment of the present invention
Structural schematic diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 8, society shown in Fig. 9 monitors resource access device also
May include:
Unit 840 is established, accesses tying up for the corresponding tunnel interface of box with described at least two for establishing the example
Determine relationship;
The generation unit 830 is also used to according to the binding relationship, and society's monitoring resource that access box is sent
Information generates society's monitoring resource list item, wherein society's monitoring resource list item includes the device id of society's monitoring resource, institute
True example, IP address and corresponding server interface.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, will access box by side hang in a manner of access society monitoring resource network, and
It accesses between box and access server and establishes using the IP address in society's monitoring resource network as the tunnel of tunnel interface address
Connection, and ARP proxy function is enabled on access box, when access box receives the purpose IP address of access server transmission
For society monitoring resource IP address ARP request when or receive society monitoring resource send purpose IP address be access clothes
When the ARP request message of the tunnel interface address of business device, access box responds arp reply message as proxy ARP, so that access
Server or society's monitoring resource send according to the ARP entry and report according to the corresponding ARP entry of arp reply message generation
Text realizes the access of society's monitoring resource under the premise of not changing user network, and avoiding access box can be as use
The fault point of family network or bandwidth bottleneck point.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (6)
1. a kind of society's monitoring resource access method is applied to including access server, access box and society's monitoring resource
The video monitoring system of network, which is characterized in that the access box is linked into society's monitoring resource in such a way that side is hung
Network, establishing between the access box and the access server has tunnel connection, and the interface IP address at the tunnel both ends is
Internet protocol address in society's monitoring resource network;The described method includes:
When access box receives the Address Resolution Protocol ARP request message that access server is sent by tunnel, and the ARP
Society's monitoring resource in society's monitoring resource network that the purpose IP address of request message is accessed by the access box
When IP address, the access box is returned including the media access control MAC for accessing box to the access server
The arp reply message of location, so that the access server generates the MAC Address of the access box and the society monitors resource
The corresponding ARP entry of IP address, and according to the ARP entry to it is described society monitoring resource send message;
When the access box receives the ARP request message that society's monitoring resource is sent, and the ARP request message
When purpose IP address is the tunnel interface address of the access server, the access box is returned to society's monitoring resource
The arp reply message of MAC Address including the access box, so that society's monitoring resource generates the access box
MAC Address ARP entry corresponding with the tunnel interface address of the access server, and according to the ARP entry to the access
Server sends message.
2. the method according to claim 1, wherein the method also includes:
The access box obtains two local ip address from society's monitoring resource network that itself is accessed;
The access box is respectively using described two local ip address as the tunnel of local tunnel interface address and access server
Pipeline joint address is established tunnel with the access server and is connect.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
The access box sends society's monitoring resource network that the access box accesses to the access server by tunnel
The society's monitoring resource information for including in network, so that the access server is according to social monitoring information maintenance society monitoring
Resource list item;Wherein, society's monitoring resource information includes the device id and IP address of society's monitoring resource;Society's prison
Controlling in resource list item includes social device id, IP address and the corresponding server interface for monitoring resource.
4. a kind of society's monitoring resource access device is applied to including access server, access box and society's monitoring resource
In the access box of the video monitoring system of network, which is characterized in that the access box is linked into described in such a way that side is hung
Society's monitoring resource network, establishing between the access box and the access server has tunnel connection, the tunnel both ends
Interface IP address be it is described society monitoring resource network in internet protocol address;Described device includes:
Receiving unit, for receiving the ARP request message of access server or society's monitoring resource transmission;
Response unit, for receiving the Address Resolution Protocol ARP that access server is sent by tunnel when the receiving unit
Request message, and society's monitoring resource network that the purpose IP address of the ARP request message is accessed by the access box
In society's monitoring resource IP address when, it includes the access box that the access box is returned to the access server
The arp reply message of MAC address, so that the access server generates the MAC Address of the access box
ARP entry corresponding with society's monitoring IP address of resource, and sent according to the ARP entry to society's monitoring resource
Message;When the receiving unit receives the ARP request message that society's monitoring resource is sent, and the ARP request message
Purpose IP address be the access server tunnel interface address when, the access box to it is described society monitor resource return
The arp reply message of the MAC Address including the access box is returned, so that society's monitoring resource generates the access box
MAC Address ARP entry corresponding with the tunnel interface address of the access server, and connect according to the ARP entry to described
Enter server and sends message.
5. device according to claim 4, which is characterized in that described device further include:
Acquiring unit, for obtaining two local ip address from society's monitoring resource network that the access box accesses;
Unit is established, for respectively using described two local ip address as the tunnel of local tunnel interface address and access server
Pipeline joint address is established tunnel with the access server and is connect.
6. device according to claim 4 or 5, which is characterized in that described device further include:
Transmission unit, for sending society's monitoring resource network that the access box accesses to the access server by tunnel
The society's monitoring resource information for including in network, so that the access server is according to social monitoring information maintenance society monitoring
Resource list item;Wherein, society's monitoring resource information includes the device id and IP address of society's monitoring resource;Society's prison
Controlling in resource list item includes social device id, IP address and the corresponding server interface for monitoring resource.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610151532.4A CN105721833B (en) | 2016-03-16 | 2016-03-16 | A kind of society's monitoring resource access method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610151532.4A CN105721833B (en) | 2016-03-16 | 2016-03-16 | A kind of society's monitoring resource access method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105721833A CN105721833A (en) | 2016-06-29 |
CN105721833B true CN105721833B (en) | 2019-01-11 |
Family
ID=56157699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610151532.4A Active CN105721833B (en) | 2016-03-16 | 2016-03-16 | A kind of society's monitoring resource access method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105721833B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106559271B (en) * | 2016-12-02 | 2019-10-18 | 浙江宇视科技有限公司 | A kind of resource access method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103002065A (en) * | 2012-12-14 | 2013-03-27 | 大唐移动通信设备有限公司 | Method and device for sharing internet protocol (IP) address by host device and standby device |
CN103973570A (en) * | 2013-01-31 | 2014-08-06 | 华为技术有限公司 | Message transmission method, AP (access point) and message transmission system |
CN104022936A (en) * | 2014-06-20 | 2014-09-03 | 杭州华三通信技术有限公司 | Method and device for establishing tunnel |
CN105163062A (en) * | 2015-06-16 | 2015-12-16 | 浙江宇视科技有限公司 | System and method for accessing social resources to public platform |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102130834B (en) * | 2011-03-15 | 2014-04-02 | 杭州华三通信技术有限公司 | Internet protocol (IP) routing method and router |
-
2016
- 2016-03-16 CN CN201610151532.4A patent/CN105721833B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103002065A (en) * | 2012-12-14 | 2013-03-27 | 大唐移动通信设备有限公司 | Method and device for sharing internet protocol (IP) address by host device and standby device |
CN103973570A (en) * | 2013-01-31 | 2014-08-06 | 华为技术有限公司 | Message transmission method, AP (access point) and message transmission system |
CN104022936A (en) * | 2014-06-20 | 2014-09-03 | 杭州华三通信技术有限公司 | Method and device for establishing tunnel |
CN105163062A (en) * | 2015-06-16 | 2015-12-16 | 浙江宇视科技有限公司 | System and method for accessing social resources to public platform |
Also Published As
Publication number | Publication date |
---|---|
CN105721833A (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103873826B (en) | Media stream control method and device | |
CN104601742B (en) | A kind of method and apparatus of message transmissions | |
CN102845123A (en) | Virtual private cloud connection method and tunnel proxy server | |
CN105681445B (en) | The point-to-point transmission routing resource and device of data | |
CN103108089A (en) | Connection establishment management method of network system and related system thereof | |
CN109151916B (en) | Network transmission method, device and system for mobile network service | |
CN106713819A (en) | Data transmission method, device and system for video conference | |
CN105163062B (en) | A kind of system and method that social resources are linked into common platform | |
CN108040268A (en) | A kind of video surveillance network method of controlling security and system based on SDN | |
CN102394889A (en) | Network server access method and access system | |
CN113810512A (en) | Internet of things terminal access system, method and device and storage medium | |
CN102938768B (en) | A kind of roamer is cross-domain to be logged in, the cross-domain method and apparatus being monitored business | |
CN103607345A (en) | Method and system for setting up routing information by monitoring node | |
CN107770010A (en) | A kind of home intranet method and home networking system based on OpenFlow | |
CN103401954B (en) | The implementation method of virtual DHCP | |
CN105979202B (en) | Data transmission method and device | |
CN107659930A (en) | A kind of AP connection control methods and device | |
CN105915662B (en) | A kind of data transmission method and device | |
CN105897853A (en) | Peer-to-peer network connection method and device | |
CN108123912A (en) | A kind of micro services system for supporting P2P | |
CN102647360A (en) | Method and equipment for transmitting messages in VRRPE (virtual router redundancy protocol equilibrium) | |
CN105721833B (en) | A kind of society's monitoring resource access method and device | |
CN103780494A (en) | User information obtaining method and device | |
CN106357443B (en) | A kind of method and apparatus of network configuration | |
CN112422395A (en) | Data transmission method, device, terminal equipment and storage medium |
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 |