[go: up one dir, main page]

CN103152255B - The method and apparatus that a kind of data forward - Google Patents

The method and apparatus that a kind of data forward Download PDF

Info

Publication number
CN103152255B
CN103152255B CN201310054637.4A CN201310054637A CN103152255B CN 103152255 B CN103152255 B CN 103152255B CN 201310054637 A CN201310054637 A CN 201310054637A CN 103152255 B CN103152255 B CN 103152255B
Authority
CN
China
Prior art keywords
line
couplet equipment
request message
broadband router
data
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
Application number
CN201310054637.4A
Other languages
Chinese (zh)
Other versions
CN103152255A (en
Inventor
魏元首
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shenzhou Digital Cloud Information Technology Co ltd
Shenzhou Kuntai Xiamen Information Technology Co ltd
Original Assignee
Digital China Networks Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Digital China Networks Beijing Co Ltd filed Critical Digital China Networks Beijing Co Ltd
Priority to CN201310054637.4A priority Critical patent/CN103152255B/en
Publication of CN103152255A publication Critical patent/CN103152255A/en
Application granted granted Critical
Publication of CN103152255B publication Critical patent/CN103152255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses method and device that a kind of data forward.Described method includes, it is judged that the configuration mode of second line of a couplet device network interface: when the network interface configuration mode of second line of a couplet equipment is automatically obtain IP, being second line of a couplet equipment distributed network parameters according to the DHCP protocol of standard, the data carrying out described second line of a couplet equipment forward;When the network interface configuration mode of second line of a couplet equipment is for manually specifying, setting up the second corresponding relation being not used by between IP described on the IP address and described broadband router that arrange under the first corresponding relation being not used by between IP on described second line of a couplet equipment MAC and broadband router and described second line of a couplet equipment manual mode, the data carrying out described second line of a couplet equipment according to described first, second corresponding relation forward.Method and apparatus provided by the invention can make the second line of a couplet equipment of access band router not need to revise its network parameter just can directly, simply access network.

Description

The method and apparatus that a kind of data forward
Technical field
The present invention relates to computer network field, particularly relate to the method and apparatus that a kind of data forward.
Background technology
Broadband router is a kind of networking products emerging in recent years, and it arises at the historic moment along with the universal of broadband.Broadband router is integrated with the functions such as router, fire wall, bandwidth control and system administration, possess the features such as rapid data forwarding, network management flexibly, abundant traffic statistics and journaling, and configuring simple, majority also has configuration wizard function, it is simple to user manages use.For China's broadband market at present, most broadband routers have special optimization to design, for instance the featured functions such as many ISP (InternetServiceProvider, ISP) circuit automatic routing, can meet different network traffics environment.Most broadband routers adopt highly integrated design, integrated 10/100/1000Mbps broadband ethernet interface, can interconnect and connect Internet by driving plurality pc, being widely used in the occasions such as family, hotel, school, office, Internet bar, community access, government, enterprise.In order to make second line of a couplet PC have access to network, general broadband router is at LAN(LocalAreaNetwork, LAN) mouth is all enable DHCPServer(dynamically to obtain the server of IP) function: when the network interface of second line of a couplet PC is configured to acquisition IP pattern automatically, PC can obtain IP automatically, thus connecting into network, carrying out data by router and forwarding to meet the demand being generally relatively fixed user;When the network interface of second line of a couplet PC is configured to manual designated mode, it is necessary to the configuration mode of network interface is revised as acquisition IP pattern automatically by user could normally access network.But in flows of personnel such as similar hotels than in scene faster, it will there is the problems such as human cost increase, time waste and the efficiency brought because of amendment network configuration are low.
Summary of the invention
It is an object of the invention to the method and apparatus forwarded by a kind of data, no matter making the second line of a couplet equipment network configuration before of new couple in router, can both accomplish to revise its current network interface configuration, all can carry out data forwarding by router.
For reaching this purpose, the present invention by the following technical solutions:
A kind of method that data forward, described method includes, judging the configuration mode of second line of a couplet device network interface: when the network interface configuration mode of second line of a couplet equipment is as automatically obtaining IP, be second line of a couplet equipment distributed network parameters according to the DHCP protocol of standard, the data carrying out described second line of a couplet equipment forward;When the network interface configuration mode of second line of a couplet equipment is for manually specifying, setting up the second corresponding relation being not used by between IP described on the IP address and described broadband router that arrange under the first corresponding relation being not used by between IP on described second line of a couplet equipment MAC and broadband router and described second line of a couplet equipment manual mode, the data carrying out described second line of a couplet equipment according to described first, second corresponding relation forward.
Corresponding, the invention allows for the device that a kind of data forward, described device includes:
Configuration mode judge module, for judging the configuration mode of second line of a couplet device network interface;
DHCP mode processing module, when the network configurations that the judged result of described configuration mode judge module is described second line of a couplet equipment is for automatically obtaining IP, for being described second line of a couplet equipment distributed network parameters according to the DHCP protocol of standard, the data carrying out described second line of a couplet equipment forward;
Manual specific mode processing module, when the network configurations that the judged result of described configuration mode judge module is described second line of a couplet equipment is for manually specifying, the second corresponding relation being not used by between IP described on the IP address setting up setting under the first corresponding relation being not used by between IP on described second line of a couplet equipment MAC and broadband router and described second line of a couplet equipment manual mode and described broadband router, the data carrying out described second line of a couplet equipment according to described first, second corresponding relation forward.
The present invention is by the network configurations that second line of a couplet equipment is different, carry out the technological means of data forwarding in different ways, the second line of a couplet equipment achieving couple in router need not revise its network parameter, just can directly, simply access the effect of network, the maintenance work of network manager is greatly reduced.Present invention is especially suited for the access network of the bigger occasions of network mobility such as hotel, railway station, saloon uses.
Accompanying drawing explanation
The flowchart of the method that the data that Fig. 1 is shown according to a first embodiment of the present invention forward;
Fig. 2 is the process chart forwarding second line of a couplet equipment sending data bag shown according to a first embodiment of the present invention;
Fig. 3 is the process chart forwarding second line of a couplet equipment receiving data bag shown according to a first embodiment of the present invention;
Fig. 4 is the process chart of DNS request message shown according to a second embodiment of the present invention;
Fig. 5 be according to a third embodiment of the present invention shown in the aging process chart of static route entry;
The structural representation of the device that the data that Fig. 6 is shown according to a fourth embodiment of the present invention forward.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, but not limitation of the invention.It also should be noted that, for the ease of describing, accompanying drawing illustrate only part related to the present invention but not full content.
Figure 1 illustrates the first embodiment of the present invention.
Fig. 1 is that the method that data according to a first embodiment of the present invention forward realizes flow process 100, and this realizes flow process 100, and details are as follows:
Step 101, broadband router receive DHCP request or the ARP request of second line of a couplet equipment.
Described DHCP request or ARP request are be positioned at, with the corresponding interface of described broadband router, the broadcast request that the second line of a couplet equipment of same broadcast domain sends.
Step 102, broadband router are according to the DHCP request received or ARP request, it is judged that the configuration mode of second line of a couplet device network interface.If it is determined that the network configurations of second line of a couplet equipment is for dynamically obtaining IP, perform step 103, if it is determined that the network configurations of second line of a couplet equipment is manual configuration, perform step 104.
Specifically, the determination methods of second line of a couplet device network interface allocation method is: when described broadband router receives DHCP request message, it is judged that send the network interface configuration mode in the second line of a couplet equipment of described DHCP request message for automatically obtaining IP;When described broadband router receives ARP request message, what situations below occur judges that the network interface configuration mode sending the second line of a couplet equipment of described ARP request message is as manually specifying first:
1, the source IP address in described ARP request message is not belonging in described broadband router the legitimate ip address that has been assigned with;
Such as: the source IP address of the ARP request message that certain port of broadband router receives is: 172.168.0.162, the IP address range of this port configuration is: 192.168.0.2-192.168.0.255.
2, the source IP address in described ARP request message belongs to the legal IP being assigned with in described broadband router, but source MAC is not inconsistent with the MAC Address corresponding for described legal IP of record in router.
Such as: the source IP address of the ARP request message that certain port of broadband router receives is: 192.168.0.162, MAC are;F4:6D:04:60:20:A9, this IP address of this port assignment, but MAC Address corresponding to this IP address is: C0:30:23:A3:54:B3.
Step 103, use DHCP standard agreement respond second line of a couplet equipment.
Distribute IP address for described second line of a couplet equipment, and specify gateway and dns server.
Step 104, carry out normal data forwarding.
Second line of a couplet equipment uses the IP address that broadband router dynamically distributes, and carries out normal data forwarding.
Step 105, carry out ARP proxy.
Broadband router sends the first arp response message to the second line of a couplet equipment sending ARP request message, replaces response ARP request, and the MAC Address of response is the MAC Address of described broadband router itself.
Step 106, establishment Static ARP list item.That is: MAC-IP correspondence list item.Wherein:
MAC is the MAC of the second line of a couplet equipment sending ARP request message;
IP is the IP address being not used by broadband router.
Preferably, IP is set in router in the uncommon field of configuration not by the IP address of router interface and the use of Static ARP list item.
Such as: adding a new interface IP on the f0/0 port of router, adding method is:
interf0/0
ipadd192.168.0.1255.255.255.0
ipadd10.1.1.0255.255.255.0secondary
A plurality of Static ARP list item constitutes static ARP table, and on router, the signal table of static ARP table is as shown in table 1.
Table 1
MAC IP
F4:6D:04:60:20:A9 10.1.1.51
C0:30:23:A3:54:B3 10.1.1.125
D4:58:17:03:A7:30 10.1.1.23
Wherein: MAC is the physical address of the second line of a couplet equipment sending ARP request, and IP is the IP address of uncommon field in router.
Step 107, establishment static host route entry, it may be assumed that IP-NextHop correspondence entry.
Wherein, the IP in IP-NextHop correspondence entry is the source IP in described ARP request message;NextHop in IP-NextHop correspondence entry is not used by IP with on described described broadband router corresponding for second line of a couplet equipment MAC in described Static ARP list item.
Such as: in the ARP request that the second line of a couplet equipment of manual designated mode sends:
IP:192.168.0.158 source, source MAC:F4:6D:04:60:20:A9
IP corresponding in MAC-IP list item is: 10.1.1.51
The static route entry that this ARP request is corresponding is:
IPNextHop
192.168.0.15810.1.1.51
A plurality of static route entry constitutes static routing table, and on router, the signal table of static routing table is as shown in table 2.
Table 2
IP Next Hop
192.168.0.158 10.1.1.51
172.168.1.233 10.1.1.125
192.168.1.47 10.1.1.23
Step 108, forward second line of a couplet equipment packet.
Forward the packet of second line of a couplet equipment, including the packet that the packet forwarding second line of a couplet equipment to send and forwarding second line of a couplet equipment receive.
Wherein, the process chart forwarding second line of a couplet equipment sending data bag shown in being illustrated in figure 2 according to a first embodiment of the present invention;The process chart forwarding second line of a couplet equipment receiving data bag shown in being illustrated in figure 3 according to a first embodiment of the present invention.
As shown in Figure 2 and Figure 3, step 108 includes step 108A and step 108B: step 108A includes step 108A1-108A3;Step 108B includes step 108B1-108B4.
When broadband router forwards the packet of second line of a couplet equipment transmission, perform step 108A:
Step 108A1, extract second line of a couplet equipment sending data bag five-tuple data.Namely send in packet: source IP, source port, purpose IP, destination interface and transport layer protocol.
Step 108A2, according to five-tuple data, create data flow state list item.
A plurality of data flow state list item constitutes data flow state table, and on broadband router, the signal table of data flow state table is as shown in table 3.
Table 3
Source IP Source port Purpose IP Destination interface Transport layer protocol
192.168.0.158 245 121.14.88.76 80 TCP
172.168.1.233 1001 61.135.208.184 20 TCP
192.168.1.47 2431 113.106.194.221 88 UDP
Step 108A3, the transmission packet of second line of a couplet equipment is forwarded according to routing table.
Described routing table is static routing table and the dynamic routing table of storage on broadband router.
When broadband router forwards the packet of second line of a couplet equipment reception, perform step 108B:
Step 108B1, searches data flow state table and obtains source port.
According to the source IP receiving packet, source port and purpose IP, search data flow state table, match the data flow state list item of correspondence.
In the present embodiment, the source IP:121.14.88.76 of the packet received, source port: 80, purpose IP:192.168.0.158.According to table 3, the data flow state list item of coupling is Section 1, and obtaining source port is 245.
Step 108B2, lookup static host route entry obtain NextHop.
According to the purpose IP receiving packet, search static host routing table, match the static host route entry of correspondence.
In the present embodiment, the purpose IP:192.168.0.158 of the packet received, according to table 2, the static host route entry of coupling is Section 1, obtains NextHop:10.1.1.51.
Step 108B3, lookup Static ARP list item, obtain second line of a couplet equipment MAC.
According to the acquisition NextHop obtained in step 108B2, search static ARP table, match the Static ARP list item of correspondence.
In the present embodiment, NextHop:10.1.1.51, according to table 1, the Static ARP list item of coupling is Section 1, obtains MAC:10.1.1.51, and acquisition MAC is F4:6D:04:60:20:A9.
Step 108B4, the packet that described second line of a couplet equipment is received send to physical address be described in MAC in the MAC-IP correspondence entry that meets, port numbers be described in the second line of a couplet equipment of source port in the five-tuple data that meet.
In the present embodiment, the packet that second line of a couplet equipment receives is forwarded to No. 254 ports of the second line of a couplet equipment that MAC is F4:6D:04:60:20:A9 by router.
One of the present embodiment preferred embodiment in, between step 102 and step 105, increase by one and judge that whether ARP request message is by the step (not shown) of trust authentication.
Determination methods is:
1, the source IP and source MAC of the ARP request message received are extracted;
2, the source IP and source MAC according to this ARP request message, constructs and sends arp response message;
3, enable intervalometer, set a scheduled time, for instance: 1s.
If received within 1s and identical for the source MAC response message in described arp response message, described ARP request authentication of message result is credible;Otherwise, insincere.
When the ARP request message result of checking is insincere, abandon this ARP request message;When the ARP request message result of checking is credible, perform step 105, carry out ARP proxy.
Figure 4 illustrates the second embodiment of the present invention.
Fig. 4 is handling process Figure 200 of DNS request message according to a second embodiment of the present invention, and this realizes flow process 200, and details are as follows:
Step 201, broadband router receive the DNS request message of second line of a couplet equipment.
Step 202, judge DNS request message purpose IP whether be contained in broadband router the machine configuration dns server list: when DNS request message purpose IP be contained in broadband router the machine configuration dns server address list, perform step 203;When in DNS request message, purpose IP address is not belonging to the dns server address list of broadband router the machine configuration, perform step 204.
Step 203, directly forwarding DNS request message.
Step 204, DNS request message is carried out DNS proxy, described DNS request message is forwarded to the dns server of broadband router the machine configuration.
Figure 5 illustrates the third embodiment of the present invention.
Fig. 5 is the process chart 300 that static route entry according to a third embodiment of the present invention is aging, and this realizes flow process 300, and details are as follows:
In the present embodiment, creating after a static host route entry, be initially set to 1 for what this route entry arranged flag bit Flag, Flag, then in the present embodiment, table 2 is revised as table 4, as shown in the table.
Table 4
IP Next Hop Flag 5 -->
192.168.0.158 10.1.1.51 1
172.168.1.233 10.1.1.125 1
192.168.1.47 10.1.1.23 1
Step 301, intervalometer trigger.
Such as, it is 30 minutes by the set of time in intervalometer, triggered an intervalometer every 30 minutes.
Step 302, the traversal all static route entry with Flag labelling.
Article 1 static route entry from static routing table starts to read, it is judged that the Flag value in static route entry.
Step 303, judge that Flag value is 1 or 0.When the Flag value judging static route entry is 1, perform step 304;When the Flag value judging static host route entry is 0, perform step 305.
Step 304, the Flag value of this static host route entry is set to 0.
Step 305, delete this static host route entry and delete simultaneously correspondence ARP.
Such as, a certain item of static host route entry is:
IP Next Hop Flag
192.168.0.158 10.1.1.51 0
After performing step 305, static routing table is deleted this, simultaneously in static ARP table, delete the IP Static ARP list item identical with NextHop item in static routing list item.
MAC IP
F4:6D:04:60:20:A9 10.1.1.51
Step 306, judgement are when whether bar static host route entry is the last item in static host routing table: if the last item, perform step 307;If not the last item, re-execute step 302.
Step 307, replacement intervalometer.
Such as: in the present embodiment, the time in intervalometer is re-set as 30 minutes.
Figure 6 illustrates the fourth embodiment of the present invention.
Fig. 6 is the structural representation 400 of the device that data according to a fourth embodiment of the present invention forward.
The device 400 that data shown in the present embodiment forward, including configuration mode judge module 401, manual specific mode processing module 402 and DHCP mode processing module 403.
Wherein: configuration mode judge module 401 is according to the ARP received or DHCP request message, it is judged that the configuration mode of broadband router second line of a couplet device network interface.When judge second line of a couplet equipment network interface configuration mode as automatically obtaining IP mode, starting DHCP mode processing module 403, DHCP mode processing module 403 according to the DHCP protocol of standard is second line of a couplet equipment distributed network parameters, completes data and forwards;When the network interface configuration mode judging second line of a couplet equipment is manual specific mode, start manual specific mode processing module 402, manual specific mode processing module 402, the second corresponding relation being not used by between IP described on the IP address setting up setting under the first corresponding relation being not used by between IP on described second line of a couplet equipment MAC and broadband router and described second line of a couplet equipment manual mode and described broadband router, the data carrying out described second line of a couplet equipment according to described first, second corresponding relation forward.
One of the present embodiment preferred embodiment in, broadband router realizes the device 400 that second line of a couplet device data forwards, also includes DNS proxy module (not shown).
DNS proxy module, for completing DNS proxy function to DNS request message: when in the DNS request message received, purpose IP address is contained in the dns server address list of described broadband router the machine configuration, described DNS request message is directly forwarded;When in the described DNS request message received, purpose IP address is not belonging to the dns server address list of described broadband router the machine configuration, described DNS request message is carried out DNS proxy, DNS request message is forwarded to the dns server of described broadband router the machine configuration.
One of the present embodiment preferred embodiment in, manual specific mode processing module 402 farther includes: corresponding relation building module and data forwarding module (not shown).
Corresponding relation building module, the second corresponding relation being not used by between IP described on the IP address setting up setting under the first corresponding relation being not used by between IP on described second line of a couplet equipment MAC and broadband router and described second line of a couplet equipment manual mode and described broadband router.
Data forwarding module, according to first, second corresponding relation that corresponding relation building module is set up, the data for carrying out described second line of a couplet equipment forward.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention being described in further detail by above example, but the present invention is not limited only to above example, when without departing from present inventive concept, other Equivalent embodiments more can also be included, and the scope of the present invention is determined by appended right.

Claims (14)

1. the method that data forward, it is characterized in that, described method includes, judge the configuration mode of second line of a couplet device network interface: when the network interface configuration mode of second line of a couplet equipment is as automatically obtaining IP, being second line of a couplet equipment distributed network parameters according to the DHCP protocol of standard, the data carrying out described second line of a couplet equipment forward;When the network interface configuration mode of second line of a couplet equipment is for manually specifying, setting up the second corresponding relation being not used by between IP described on the IP address and described broadband router that arrange under the first corresponding relation being not used by between IP on described second line of a couplet equipment MAC and broadband router and described second line of a couplet equipment manual mode, the data carrying out described second line of a couplet equipment according to described first, second corresponding relation forward.
2. the method that data according to claim 1 forward, it is characterized in that, the described data carrying out second line of a couplet equipment forward, also include the step carrying out DNS proxy: described broadband router judges the DNS request message received, when in the described DNS request message received, purpose IP address is contained in the dns server address list of described broadband router the machine configuration, then described DNS request message is directly forwarded;When in the described DNS request message received, purpose IP address is not belonging to the dns server address list of described broadband router the machine configuration, then described DNS request message is carried out DNS proxy, described DNS request message is forwarded to the dns server of described broadband router the machine configuration.
3. the method that data according to claim 1 and 2 forward, it is characterized in that, the configuration mode of described judgement second line of a couplet device network interface includes: when described broadband router receives DHCP request message, it is judged that send the network interface configuration mode in the second line of a couplet equipment of described DHCP request message for automatically obtaining IP;When described broadband router receives ARP request message, what situations below occur judges that the network interface configuration mode sending the second line of a couplet equipment of described ARP request message is as manually specifying first:
Source IP address in described ARP request message is not belonging in described broadband router the legitimate ip address being assigned with;
Or, the source IP address in described ARP request message belongs to the legal IP being assigned with in described broadband router, but source MAC is not inconsistent with the MAC Address corresponding for described legal IP of record in router.
4. the method that data according to claim 3 forward, it is characterised in that described the first corresponding relation being not used by between IP on described second line of a couplet equipment MAC and described broadband router of setting up includes:
The described ARP request message received being carried out ARP proxy, sends the first arp response message to the second line of a couplet equipment sending described ARP request message, replace response ARP request, the MAC Address of response is the MAC Address of described broadband router itself;
Create Static ARP list item, including: MAC-IP correspondence list item, wherein, the MAC in described Static ARP list item is the MAC of the second line of a couplet equipment sending described ARP request message;IP in described Static ARP list item is the IP address being not used by described broadband router.
5. the method that data according to claim 4 forward, it is characterised in that described the second corresponding relation being not used by between IP described on the IP address and described broadband router that arrange under described second line of a couplet equipment manual mode of setting up includes:
Create static host route entry, including: IP-NextHop correspondence entry, wherein, the IP in described IP-NextHop correspondence entry is the source IP in described ARP request message;NextHop in described IP-NextHop correspondence entry is not used by IP with on described described broadband router corresponding for second line of a couplet equipment MAC in described Static ARP list item.
6. the method that data according to claim 5 forward, it is characterised in that carry out before the described described ARP request message to receiving carries out ARP proxy step, also including the step that described ARP request message carries out trust authentication.
7. the method that data according to claim 6 forward, it is characterised in that the step that described ARP request message is carried out trust authentication includes:
Extract the source IP and source MAC of described ARP request message;
Source IP according to described ARP request message and source MAC, constructs and sends the second arp response message;
If received within the time set in advance and identical for the source MAC response message in described second arp response message, described ARP request authentication of message result is credible;Otherwise, insincere.
8. the method that the data according to claim 5 or 6 forward, it is characterised in that the IP address being not used by described broadband router includes: the IP address not used by router interface and Static ARP list item in the uncommon network segment of configuration in described broadband router.
9. the method that the data according to claim 5 or 6 forward, it is characterised in that the described data forwarding carrying out described second line of a couplet equipment according to the first corresponding relation and the second corresponding relation, the packet forwarding described second line of a couplet equipment to send, comprises the following steps:
Extract the five-tuple data of described second line of a couplet equipment sending data bag, create data flow state list item;
According to the forwarding strategy of configuration on described broadband router, when the packet allowing described second line of a couplet equipment to send forwards, the packet sent by described second line of a couplet equipment forwards according to the route table items of storage in described broadband router.
10. the method that data according to claim 9 forward, it is characterised in that the described data forwarding carrying out described second line of a couplet equipment according to the first corresponding relation and the second corresponding relation, the packet forwarding described second line of a couplet equipment to receive, comprises the following steps:
According to the packet that described second line of a couplet equipment receives, search the data flow state table including described data flow state list item, match the five-tuple data met, the source port in the five-tuple data met described in acquisition;
Purpose IP according to the packet that described second line of a couplet equipment receives, searches the static host routing table including described static host route entry, matches the IP-NextHop correspondence entry met, the NextHop in the IP-NextHop correspondence entry met described in acquisition;
According to the NextHop in the described IP-NextHop correspondence entry met, search the static ARP table including described Static ARP list item, match the MAC-IP correspondence entry met, the MAC in the MAC-IP correspondence entry met described in acquisition;
The packet that described second line of a couplet equipment is received send to physical address be described in MAC in the MAC-IP correspondence entry that meets, port numbers be described in the second line of a couplet equipment of source port in the five-tuple data that meet.
11. the method that data according to claim 5 or 6 forward, it is characterised in that also including described static host route entry and the regularly aging step of Static ARP list item, described step includes:
After creating a described static host route entry, flag bit Flag, Flag initial value is set for the static host route entry of described establishment and is set to 1;
Enabling an intervalometer, described intervalometer travels through all static host route entrys with Flag labelling after triggering, if Flag is 1, then described Flag sets to 0, if Flag is 0, then deletes this static host route entry, deletes corresponding ARP simultaneously;
Reset intervalometer.
12. the device that data forward, it is characterised in that described device includes:
Configuration mode judge module, for judging the configuration mode of second line of a couplet device network interface;
DHCP mode processing module, when the network configurations that the judged result of described configuration mode judge module is described second line of a couplet equipment is for automatically obtaining IP, for being described second line of a couplet equipment distributed network parameters according to the DHCP protocol of standard, the data carrying out described second line of a couplet equipment forward;
Manual specific mode processing module, when the network configurations that the judged result of described configuration mode judge module is described second line of a couplet equipment is for manually specifying, the second corresponding relation being not used by between IP described on the IP address setting up setting under the first corresponding relation being not used by between IP on described second line of a couplet equipment MAC and broadband router and described second line of a couplet equipment manual mode and described broadband router, the data carrying out described second line of a couplet equipment according to described first, second corresponding relation forward.
13. the device that data according to claim 12 forward, it is characterized in that, described device also includes DNS proxy module, for DNS request message is completed DNS proxy function: when in the described DNS request message received, purpose IP address is contained in the dns server address list of described broadband router the machine configuration, then described DNS request message is directly forwarded;When in the described DNS request message received, purpose IP address is not belonging to the dns server address list of described broadband router the machine configuration, then described DNS request message is carried out DNS proxy, described DNS request message is forwarded to the dns server of described broadband router the machine configuration.
14. the device that the data according to claim 12 or 13 forward, it is characterised in that described manual specific mode processing module farther includes:
Corresponding relation building module, the second corresponding relation being not used by between IP described on the IP address setting up setting under the first corresponding relation being not used by between IP on described second line of a couplet equipment MAC and described broadband router and described second line of a couplet equipment manual mode and described broadband router;
Data forwarding module, according to described first, second corresponding relation that described corresponding relation building module is set up, the data for carrying out described second line of a couplet equipment forward.
CN201310054637.4A 2013-02-20 2013-02-20 The method and apparatus that a kind of data forward Active CN103152255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310054637.4A CN103152255B (en) 2013-02-20 2013-02-20 The method and apparatus that a kind of data forward

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310054637.4A CN103152255B (en) 2013-02-20 2013-02-20 The method and apparatus that a kind of data forward

Publications (2)

Publication Number Publication Date
CN103152255A CN103152255A (en) 2013-06-12
CN103152255B true CN103152255B (en) 2016-06-29

Family

ID=48550127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310054637.4A Active CN103152255B (en) 2013-02-20 2013-02-20 The method and apparatus that a kind of data forward

Country Status (1)

Country Link
CN (1) CN103152255B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112636983A (en) * 2020-12-28 2021-04-09 深圳市信锐网科技术有限公司 Network equipment networking method, uplink equipment, downlink equipment and electronic equipment
CN113507476B (en) * 2021-07-15 2023-07-07 北京融汇画方科技有限公司 Defense method, system, equipment and storage medium for ARP spoofing attack

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450766A (en) * 2002-04-10 2003-10-22 深圳市中兴通讯股份有限公司 User management method based on dynamic mainframe configuration procotol
CN1901474A (en) * 2006-07-11 2007-01-24 杭州华为三康技术有限公司 IP address distributing method and device
CN102123050A (en) * 2011-03-09 2011-07-13 成都勤智数码科技有限公司 Network terminal management method
CN102238091A (en) * 2011-07-22 2011-11-09 中兴通讯股份有限公司 Message sending method and access controller
CN102316034A (en) * 2011-09-06 2012-01-11 中兴通讯股份有限公司 Method for preventing manual Internet protocol (IP) address specification in local area network and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7356841B2 (en) * 2000-05-12 2008-04-08 Solutioninc Limited Server and method for providing specific network services
US8363647B2 (en) * 2001-04-03 2013-01-29 Voxpath Networks, Inc. System and method for configuring an IP telephony device
US7673021B2 (en) * 2004-02-12 2010-03-02 Cisco Technology, Inc. Automated provisioning of phones in packet voice networks
US8135013B2 (en) * 2007-04-06 2012-03-13 International Business Machines Corporation Internet protocol switch and use of the switch for switching a frame

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450766A (en) * 2002-04-10 2003-10-22 深圳市中兴通讯股份有限公司 User management method based on dynamic mainframe configuration procotol
CN1901474A (en) * 2006-07-11 2007-01-24 杭州华为三康技术有限公司 IP address distributing method and device
CN102123050A (en) * 2011-03-09 2011-07-13 成都勤智数码科技有限公司 Network terminal management method
CN102238091A (en) * 2011-07-22 2011-11-09 中兴通讯股份有限公司 Message sending method and access controller
CN102316034A (en) * 2011-09-06 2012-01-11 中兴通讯股份有限公司 Method for preventing manual Internet protocol (IP) address specification in local area network and device

Also Published As

Publication number Publication date
CN103152255A (en) 2013-06-12

Similar Documents

Publication Publication Date Title
EP3313025B1 (en) Data packet forwarding
US9876706B2 (en) Relay system and switching device for a layer 3 network
US8451839B2 (en) Method and apparatus for managing route information and forwarding data in access devices
CN103944826B (en) List item polymerization and equipment in SPBM network
US9900238B2 (en) Overlay network-based original packet flow mapping apparatus and method therefor
CN108429680B (en) Route configuration method, system, medium and equipment based on virtual private cloud
CN102316028B (en) Method and apparatus for sending internet protocol packet
US9363094B2 (en) Relay system and switching device
CN104320342A (en) Method and device for forwarding messages in multilink transparent Internet
CN105791072A (en) Access method and device of Ethernet virtual network
CN107277190B (en) A method for automatic on-line of SDN equipment, SDN equipment and controller
CN102859973A (en) Method, apparatus and system for address resolution
CN104243270A (en) Tunnel setup method and tunnel setup device
EP3113425B1 (en) Encapsulation method for service routing packet, service forwarding entity and control plane
US7986695B1 (en) Automatic selection of site-IDs for virtual private networks
CN102185766A (en) Unicast forwarding method and forwarding equipment for responding messages by DHCP (Dynamic host configuration protocol) server
WO2020220459A1 (en) Vxlan and openflow-based method and system for sharing virtual home network
CN102647328B (en) A kind of label distribution method, equipment and system
CN107070790A (en) A kind of route learning method and routing device
CN105933235A (en) Data communication method and data communication device
CN104734877B (en) A kind of method, apparatus and system obtaining configuration server information
CN103152255B (en) The method and apparatus that a kind of data forward
WO2014127687A1 (en) Ethernet virtualisation interconnection networks having a hub-spoke structure
CN100479371C (en) Method of broadcast transmitting message and an exchange equipment
WO2018040940A1 (en) Two-layer network, and loopback detection method of two-layer network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 100085 No.301, 3rd floor, 9 shangdijiu street, Haidian District, Beijing

Patentee after: Beijing Shenzhou Digital Cloud Information Technology Co.,Ltd.

Country or region after: China

Address before: 100085 Beijing Haidian District, No. 9 Shangdi Jiujie Digital Science and Technology Plaza

Patentee before: DIGITAL CHINA NETWORKS (BEIJING) Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240802

Address after: 100085 No.301, 3rd floor, 9 shangdijiu street, Haidian District, Beijing

Patentee after: Beijing Shenzhou Digital Cloud Information Technology Co.,Ltd.

Country or region after: China

Patentee after: Shenzhou Kuntai (Xiamen) Information Technology Co.,Ltd.

Address before: 100085 No.301, 3rd floor, 9 shangdijiu street, Haidian District, Beijing

Patentee before: Beijing Shenzhou Digital Cloud Information Technology Co.,Ltd.

Country or region before: China