CN104040986B - Message forwarding method and device - Google Patents
Message forwarding method and device Download PDFInfo
- Publication number
- CN104040986B CN104040986B CN201280002282.8A CN201280002282A CN104040986B CN 104040986 B CN104040986 B CN 104040986B CN 201280002282 A CN201280002282 A CN 201280002282A CN 104040986 B CN104040986 B CN 104040986B
- Authority
- CN
- China
- Prior art keywords
- packet message
- mac address
- message
- subscriber
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
Abstract
Embodiments provide a kind of message forwarding method, methods described includes:Receive the first packet message from network side, described first packet message is the IPv6 packet message of internet protocol version 6, described first packet message includes identifying the purpose C IPv6 address of subscriber's main station and the purpose V MAC Address of mark subscribers' line;According to the purpose C IPv6 address in described first packet message, determine the required purpose C MAC Address identifying subscriber's main station of the MAC encapsulation of downlink user circuit;Purpose V MAC Address in described first packet message is replaced with after the purpose C MAC Address of described mark subscriber's main station, is encapsulated as second packet message;According to the purpose V MAC Address in described first packet message, determine the downlink user line port of described second packet message;Forward described second packet message to described downlink user line port.The message forwarding method being provided by above-described embodiment, can realize the forwarding of IPv6 message by static mappings rule.
Description
Technical field
The present invention relates to internet arena is and in particular to a kind of message forwarding method and device.
Background technology
In Internet protocol (Internet Protocol, IP) from Internet Protocol Version 4 (Internet Protocol
Version4, IPv4) to during IPv6 (Internet Protocol version6, IPv6) transition, be
Obtain the support to IPv6 protocol stack, generally require the edge device of user network, such as user gateway (Residential
Gateway, RG), support IPv6 route and while forwarding capability in addition it is also necessary to its network side support network-oriented based on
Prefix delegation (the Dynamic Host Configuration Protocol for of the DHCP of IPv6
IPv6Prefix Delegation, DHCPv6-PD), and support oneself of the stateless address towards subscriber's main station in user side
Dynamic configuration (Stateless Address Auto-Configuration, SLAAC) or the dynamic host configuration based on IPv6
(DHCPv6) basic agreement and the function such as, this makes user network generally require to change its edge routing device.
In access node (Access Node, AN) equipment, the such as digital subscriber line access multiplex in access network
(Digital Subscriber Line Access Multiplexer, DSLAM), optical line terminal (Optical Line
Terminal, OLT) or the equipment such as multiuser residential unit (Multiple Dwelling Unit, MDU) on realize Virtual User
Gateway (Virtual Residential Gateway, VRG), it is possible to use family network is while obtaining route support, it is to avoid
Replacing to user network boundary device (as bridge type RG), so that double stacks upgradings of access network can concentrate on network and set
Standby middle solution.
If supporting on AN equipment, IPv6 route and the VRG of forwarding capability adopt traditional message forwarding mechanism, its route
Join calculating and corresponding routing table (Routing Table) and neighbor cache table (Neighbor Cache) money to AN equipment
Source capability requires still can be higher.The present invention is the retransmission method supporting the AN equipment of VRG to provide new IPv6 message, AN equipment
On need not set up Traditional IP v6 message and forward required routing table and user side neighbor cache table, thus the design in AN equipment
The corresponding resource overhead of upper saving.
Content of the invention
Embodiments provide a kind of message forwarding method, it mainly realizes IPv6 by static mapping ruler
The forwarding of message.
For achieving the above object, embodiment of the present invention one side provides a kind of message forwarding method, and methods described includes:
Receive the first packet message from network side, described first packet message is the IPv6 of internet protocol version 6
Packet message, described first packet message includes identifying the purpose C-IPv6 address of subscriber's main station and the purpose of mark subscribers' line
V-MAC address;
According to the purpose C-IPv6 address in described first packet message, determine that the MAC encapsulation of downlink user circuit is required
Mark subscriber's main station purpose C-MAC address, described purpose C-MAC address is according to the C-IPv6 address in the first packet message
Static mappings rule and the purpose C-MAC address of mark subscriber's main station between determines;
Purpose V-MAC address in described first packet message is replaced with purpose C-MAC of described mark subscriber's main station
Address, is encapsulated as second packet message;
According to the purpose V-MAC address in described first packet message, determine the downlink user of described second packet message
Line port, the downlink user line port of described second packet message is according to purpose V-MAC in described first packet message
Static mappings rule between address and subscriber line ports determines;
Forward described second packet message to described downlink user line port.
Embodiment of the present invention another aspect provides a kind of apparatus for forwarding message, and described device includes:
Receiving unit, for receiving the first packet message from network side, described first packet message is internet protocol
The IPv6 packet message of view version 6, described first packet message includes purpose C-IPv6 address and the mark identifying subscriber's main station
The purpose V-MAC address of subscribers' line;
First determining unit, in order to according to the purpose C-IPv6 address in described first packet message, to determine downlink user
The purpose C-MAC address of the mark subscriber's main station needed for MAC encapsulation of circuit, described purpose C-MAC address is according to the first packet
Static mappings rule between the purpose C-MAC address of the C-IPv6 address in message and mark subscriber's main station determines;
Processing unit, uses householder in order to the purpose V-MAC address in described first packet message is replaced with described mark
The purpose C-MAC address of machine, is encapsulated as second packet message;
Second determining unit, in order to according to the purpose V-MAC address in described first packet message, to determine described second point
The downlink user line port of group message, the downlink user line port of described second packet message is according to the described first packet report
Static mappings rule between purpose V-MAC address in literary composition and subscriber line ports determines;
Transmitting element, in order to forward described second packet message to described downlink user line port.
Embodiment of the present invention another further aspect provides a kind of apparatus for forwarding message, and described device includes:
Network interface;
Processor;
Memorizer;
Physical store application program in which memory, described application program include can be used for making described processor and
Described system executes the instruction of procedure below:
The first packet message from network side is received by network interface, described first packet message is Internet protocol
The IPv6 packet message of version 6, described first packet message includes purpose C-IPv6 address and the mark use identifying subscriber's main station
The purpose V-MAC address of family circuit;
According to the purpose C-IPv6 address in described first packet message, determine that the MAC encapsulation of downlink user circuit is required
Mark subscriber's main station purpose C-MAC address, described purpose C-MAC address is according to the C-IPv6 address in the first packet message
Static mappings rule and the purpose C-MAC address of mark subscriber's main station between determines;
Purpose V-MAC address in described first packet message is replaced with purpose C-MAC of described mark subscriber's main station
Address, is encapsulated as second packet message;
According to the purpose V-MAC address in described first packet message, determine the downlink user of described second packet message
Line port, the downlink user line port of described second packet message is according to purpose V-MAC in described first packet message
Static mappings rule between address and subscriber line ports determines;
Forward described second packet message to described downlink user line port.
The message forwarding method being provided by above-described embodiment, access node apparatus come from the report of network side receiving
After literary composition, by the static mappings rule between the target MAC (Media Access Control) address in message and subscribers' line, can determine described message
Downlink user line port, by purpose IPv6 address it may be determined that downlink message the downgoing line after VRG MAC
The required final purpose MAC Address corresponding with subscriber's main station of layer encapsulation, can be not by said method IPv6 packet message
The forwarding of packet message is realized, thus reduce access node setting in the case of needing conventional routing table and user side neighbor cache table
Standby resource consumption.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to embodiment or description of the prior art
In required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only the present invention some
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the network application Organization Chart of embodiment of the present invention downlink message retransmission unit;
Fig. 2 is a kind of flow chart of embodiment of message forwarding method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of embodiment of step 202 in downlink message forwarding method provided in an embodiment of the present invention;
Fig. 4 is a kind of structure chart of embodiment of apparatus for forwarding message provided in an embodiment of the present invention;
Fig. 5 is the structure chart of apparatus for forwarding message another kind embodiment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in further detail.
Fig. 1 is the network application Organization Chart of downlink message forwarding method provided in an embodiment of the present invention, as seen from Figure 1,
In the described network architecture, include Ethernet-Aggregation node (Ethernet Aggregation in the network side of AN equipment
Node, EAN) equipment and wideband network gateway (Broadband Network Gateway, BNG) equipment, in the user of AN equipment
Side includes bridge type user gateway (Bridged-RG) and subscriber's main station (Host), and network side and user side are joined by access node AN
System gets up, and is responsible for from network side and forwards from the message of user side.
Wherein, AN equipment supports the function of Virtual User gateway (Virtual Residential Gateway, VRG), its
Will be provided with the function of router in control plane, support DHCPv6-PD agreement in network side as DHCPv6 client computer, obtain fortune
Battalion business distributes to the PD-IPv6 prefix of user network;
It AN equipment is the virtual medium access that each VRG corresponding with subscribers' line can configure by line port addressing
Control layer address (Virtual Media Access Control Address, V-MAC), generated based on this V-MAC address
The link-local address (Link-Local Address, LLA) of IPv6 can be used for supporting the DHCPv6-PD agreement of VRG network side.
Embodiment one:
In AN equipment user side, VRG corresponding with subscribers' line, as DHCPv6 server, is given by DHCPv6 agreement and uses
Family host assignment IPv6 address.The IPv6 address of 128 bits that subscriber's main station uses, that is, C-IPv6 address can be by 3 part groups
Become:PD-IPv6 prefix+subnet ID (Subnet ID)+interface identifier (Interface Identifier, IID);Wherein PD-
IPv6 prefix is distributed by DHCPv6-PD agreement by operator, and subnet ID can be determined by VRG, and both constitute C-IPv6 address
First 64;And IID is latter 64 of C-IPv6 address.If if operator distributes to the PD-IPv6 prefix of subscriber's main station itself
For 64, then the vRG on AN equipment can reallocate subnet ID.In AN equipment user side, VRG is obtained by DHCPv6 agreement
The MAC Address of subscriber's main station, i.e. C-MAC address.Because user side distributes to the C-IPv6 of subscriber's main station by DHCPv6 agreement
Address can be determined by the VRG on AN equipment and distribute, so latter 64 in the 128 of C-IPv6 address IPv6 addresses, that is,
IID part can be generated by C-MAC address correspondingly by the mapping ruler of agreement.
Illustrate:The C-MAC address that VRG is obtained by DHCPv6 agreement is 0x00-AA-00-3F-2A-1C, according to such as
The mapping ruler of lower agreement can generate the IID part of C-IPv6 address:The fixation in the middle of C-MAC inserts 2 bytes
Generate 0x00-AA-00-FF-FE-3F-2A-1C after 0xFF-FE, then the 7th bit of the 1st byte has been carried out "No" computing
Afterwards, thus the IID generating C-IPv6 address is 0x02-AA-00-FF-FE-3F-2A-1C.VRG is from network side DHCPv6-PD
The PD-IPv6 prefix obtaining subscriber's main station in agreement is 2001:db8:1234:5600:/ 56, VRG distribute for subscriber's main station
Subnet ID is 0x03, and it is 2AA that VRG generates IID according to the C-MAC address 0x00-AA-00-3F-2A-1C of subscriber's main station:FF:
FE3F:2A1, thus constitute VRG to pass through DHCPv6 agreement for the C-IPv6 address that subscriber's main station distributes is 2001:db8:1234:
5603:2AA:FF:FE3F:2A1C/128.
Static mappings rule between the C-IPv6 address of subscriber's main station and the C-MAC of subscriber's main station, can arrange simultaneously in advance
It is stored in AN.Specific static mappings rule also depends on the realization of AN equipment, can be not limited to reflect specified in above-mentioned example
Penetrate rule.Static mappings rule between C-IPv6 and C-MAC, requires nothing more than and corresponds.
In a kind of other embodiment, in AN equipment user side, VRG corresponding with subscribers' line passes through neighbor uni-cast
(Neighbor Discovery, ND) agreement distributes IPv6 prefix to subscriber's main station.The C-IPv6 address of subscriber's main station is by ND
Agreement automatically generates after obtaining IPv6 prefix.
Similar to aforesaid embodiment, generally above-mentioned IPv6 prefix is the IPv6 prefix of 64, and this IPv6 prefix can be by 2
It is grouped into:PD-IPv6 prefix+subnet ID (Subnet ID);Wherein PD-IPv6 prefix passes through DHCPv6-PD agreement by operator
Distribution, subnet ID can be determined by VRG.If if operator distributes to the PD-IPv6 prefix of subscriber's main station originally as 64, AN
VRG on equipment can reallocate subnet ID.
Latter 64 of the C-IPv6 of subscriber's main station, i.e. IID part, generally according to IETF RFC4291 provide algorithm by C-
MAC is generating, thus the one-to-one mapping ruler of the static state between establishing IID and C-MAC of C-IPv6.
Illustrate:If the PD-IPv6 prefix that VRG obtains subscriber's main station from network side DHCPv6-PD agreement is 2001:
db8:1234:5600:/ 56, VRG are 0x01 for subscriber's main station distribution Subnet ID.VRG is divided for subscriber's main station by ND agreement
The IPv6 prefix joined is 2001:db8:1234:5601:/64.
If the C-MAC address of subscriber's main station is 0x00-AA-00-3F-2A-3C, insert 2 words in its middle static state
The IEEE EUI-64 address generating after section 0xFF-FE is 0x00-AA-00-FF-FE-3F-2A-3C, then the by the 1st byte
After 7 bits have carried out "No" computing, thus the IID generating C-IPv6 address is 0x02-AA-00-FF-FE-3F-2A-3C.
Subscriber's main station obtains IPv6 prefix 2001 by ND agreement:db8:1234:5601:After/64, add above-mentioned by C-
The IID that MAC is generated by state algorithm, 2AA:FF:FE3F:2A3C, you can the C-IPv6 address generating subscriber's main station is 2001:
db8:1234:5601:2AA:FF:FE3F:2A3C/128.
Reflected based on realizing the static state between C-MAC and C-IPv6 of preservation in access device in above-mentioned embodiment
Penetrate rule, on Forwarding plane, after the downlink grouped that AN equipment receives, can be directly according to above-mentioned subscriber's main station C-IPv6 address
IID and the C-MAC of subscriber's main station between static mappings rule, target MAC (Media Access Control) address is determined by its purpose IPv6 address, from
And realize the encapsulation to this downlink grouped;Above-mentioned purpose IPv6 address identifies the C-IPv6 address of subscriber's main station, above-mentioned purpose
MAC Address identifies the C-MAC address of subscriber's main station.
Based on such scheme, the embodiment of the present invention provides a kind of message forwarding method, and Fig. 2 is provided in an embodiment of the present invention
Executive agent in the flow chart of downlink message forwarding method, wherein the present embodiment is the AN equipment supporting VRG in Fig. 1, for example
Digital Subscriber Line Access Multiplexer DSLAM in access network;Optical line terminal OLT, multi-user unit MDU or Ethernet exchanging
Machine.From Figure 2 it can be seen that methods described includes:
201, receive the first packet message from network side, described first packet message is internet protocol version 6
IPv6 packet message, described first packet message includes identifying the purpose C-IPv6 address of subscriber's main station and identifies subscribers' line
Purpose V-MAC address;
Preferably, in step 201, described first packet message can be the message that BNG is transmitted to AN equipment.Generally,
The source IP address of the up IPv6 packet message of subscriber's main station is the C- generating according to static mappings rule in previous embodiment
IPv6 address;And the purpose IP ground entrained by downstream IP v6 packet message that network side returns after responding this upstream packet message
Location is exactly the C-IPv6 of subscriber's main station.The up IPv6 packet message of subscriber's main station after AN equipment, its source MAC
(i.e. C-MAC address) is forwarded to BNG equipment after being replaced by the V-MAC address of VRG;And downstream IP v6 returning from BNG equipment
Packet, the target MAC (Media Access Control) address that it carries is exactly the corresponding V-MAC of VRG.Each subscriber line ports that AN equipment is located for VRG
Configure corresponding V-MAC address, this V-MAC address is corresponded with the line port on AN equipment.
Preferably, also include source MAC in the first packet message, i.e. downstream interface corresponding with AN equipment on BNG
MAC Address.
202, according to the purpose C-IPv6 address in described first packet message, determine the MAC encapsulation of downlink user circuit
The purpose C-MAC address of required mark subscriber's main station;
Specifically, based on aforesaid embodiment, it is recognised that adopting DHCPv6 agreement to distribute for subscriber's main station in VRG
During C-IPv6 address, can be with the static mappings rule between configuration purpose C-IPv6 address and C-MAC address on AN equipment.Cause
This, after purpose C-IPv6 address in receiving the first packet message for the AN equipment, you can determine this first packet message
Target MAC (Media Access Control) address, i.e. purpose C-MAC address.
As shown in figure 3, step 202 may further include the steps:
2021, obtain the interface identifier IID of latter 64 in described purpose C-IPv6 address;
2022, described purpose CMAC address is determined according to described IID.
For example, if described purpose C-IPv6 address is 2001:db8:1234:5603:2AA:FF:FE3F:2A1C/128,
Can determine that the IID of 64 thereafter is 2AA:FF:FE3F:2A1C.IID and C-MAC with the C-IPv6 of previous embodiment description
Between static mappings rule, by reverse computing, may further determine that C-MAC address be 0x00-AA-00-3F-2A-1C.
Based on aforesaid embodiment, it will also be appreciated that when VRG adopts ND agreement for subscriber's main station distribution IPv6 prefix,
It is usually present the mapping ruler of static state between C-IPv6 address that subscriber's main station automatically generates and C-MAC address.Therefore, AN equipment
After purpose IP address in receiving the first packet message, you can determine the target MAC (Media Access Control) address of this first packet message, that is,
Purpose C-MAC address.
For example, if described purpose C-IPv6 address is 2001:db8:1234:5601:2AA:FF:FE3F:2A3C/128,
Can determine that the IID of 64 thereafter is 2AA:FF:FE3F:2A3C.IID and C-MAC with the C-IPv6 of previous embodiment description
Between static mappings rule, by reverse computing, may further determine that C-MAC address be 0x00-AA-00-3F-2A-3C.
203, the purpose V-MAC address in described first packet message is replaced with purpose C- of described mark subscriber's main station
MAC Address, is encapsulated as second packet message;
Specifically, AN equipment, when forwarding the first packet message to subscriber's main station, needs to encapsulate again, can be by first point
Source target MAC (Media Access Control) address in group message, that is, on AN equipment, the V-MAC address of VRG corresponding with subscribers' line replaces with according to step
The target MAC (Media Access Control) address of next link determining in rapid 202, i.e. the C-MAC address of subscriber's main station.
Preferably, can also simultaneously also can be that is, corresponding with AN equipment on BNG by the source MAC in the first packet message
The MAC Address of downstream interface replace with the V-MAC address of VRG corresponding with subscribers' line on AN equipment, thus completing MAC envelope
Fill and formed new packet message, that is, second packet message.
204, according to the purpose V-MAC address in described first packet message, determine the descending of described second packet message
Subscriber line ports, the downlink user line port of described second packet message is according to purpose V- in described first packet message
Static mappings rule between MAC Address and subscriber line ports determines;
More specifically, described purpose V-MAC address i.e. V-MAC address.Because user can configure on AN equipment
One-to-one static mappings rule between V-MAC address and line port, such as by the numbering of AN equipment, on AN equipment with
The available address space of V-MAC address is enrolled in the related frame number of subscribers' line, groove number and port numbers unification, and therefore, AN equipment exists
After receiving downlink grouped message, you can determine the downlink user line port of this downlink grouped message.Specific V-MAC ground
The embodiment of the static mappings rule between location and line port, can find in the realization of many plant equipment, seldom repeat.This
In V-MAC address and line port between static mappings rule, require nothing more than and correspond.
205, forward described second packet message to described downlink user line port.
Specifically AN equipment by step 203 through MAC encapsulation formed second packet message to this AN equipment on
Certain downlink user line port forwards.Because the target MAC (Media Access Control) address of second packet message is C-MAC address, this packet message
Mark is using the subscriber's main station of C-MAC address.
More specifically, determine the downlink user line port of second packet message by step 204 after, AN equipment will
The second packet message being formed through MAC encapsulation in step 203 forwards to this downlink user line port.Due to second packet report
The target MAC (Media Access Control) address of literary composition is C-MAC address, and this packet message mark is using the subscriber's main station of C-MAC address.
By above-described embodiment it is achieved that access node AN equipment is after receiving the message coming from network side, lead to
Cross one-to-one static mappings rule between purpose V-MAC address and the subscriber line ports in message it may be determined that institute
State the downlink user line port of message;By purpose C-IPv6 address it may be determined that downlink message final purpose C-MAC ground
Location.By said method, AN equipment can be realized IPv6 and divide in the case of not needing routing table and user side neighbor cache table
The forwarding of group message is such that it is able to reduce the resource consumption to access node AN equipment.
As shown in figure 4, embodiments providing a kind of apparatus for forwarding message, described device can be described in Fig. 1
Access node AN or Ethernet switch.Described device includes:
Receiving unit 401, for receiving the first packet message from network side, described first packet message is the Internet
The IPv6 packet message of protocol edition 6, described first packet message includes purpose C-IPv6 address and the mark identifying subscriber's main station
Know the purpose V-MAC address of subscribers' line;
First determining unit 402, in order to according to the purpose C-IPv6 address in described first packet message, to determine descending use
The purpose C-MAC address of the mark subscriber's main station needed for MAC encapsulation of family circuit;
Processing unit 403, in order to replace with described mark user by the purpose V-MAC address in described first packet message
The purpose C-MAC address of main frame, is encapsulated as second packet message;
Second determining unit 404, in order to according to the purpose V-MAC address in described first packet message, to determine described
The downlink user line port of two packet messages, the downlink user line port of described second packet message is according to described first point
Static mappings rule between purpose V-MAC address in group message and subscriber line ports determines;
Transmitting element 405, in order to forward described second packet message to described downlink user line port.
More specifically, in said device, described purpose V-MAC address and the static mappings of described subscriber line ports are advised
Then, described purpose V-MAC address is regular with the static mappings of described subscriber line ports, and described determining unit 402 is also concrete to be used
With:
According to static mappings rule between described downlink user line port, determine under described second packet message
Row subscriber line ports.
That is, the second determining unit 404 according between described purpose V-MAC address and subscriber line ports one by one
Corresponding static mappings rule, determines the downlink user line port of described second packet message.
Described transmitting element 405 specifically for:By described second packet message in described downlink user line port, to
The corresponding subscriber's main station in described subscriber's main station C-MAC address forwards.
Preferably, described first determining unit 402 obtains the interface identifier of latter 64 in described purpose C-IPv6 address
IID, the described purpose C-MAC address according to needed for described IID determines processing unit 404.
Preferably, described processing unit 403 the purpose V-MAC address in described first packet message is replaced with described
Behind the purpose C-MAC address of mark subscriber's main station, described first packet message is encapsulated as during second packet message being additionally operable to:Will
Described source MAC replaces with the purpose V-MAC address of described mark subscribers' line.
In the above-described embodiments, due to having one between the purpose V-MAC address in downlink message and subscriber line ports
One corresponding static mappings rule, the C-MAC that the C-IPv6 of the mark subscriber's main station in downlink message is used with subscriber's main station deposits
In one-to-one static mappings rule, AN equipment is used for supporting that message forwarding is required even without retaining traditional routing type RG
Routing table and support ND agreement needed for user side neighbor cache table.
Above-mentioned apparatus for forwarding message is to realize the method described in Fig. 2, and concrete manifestation form can be according to concrete application
Setting.
Fig. 5 is the schematic diagram of another downlink message retransmission unit of the embodiment of the present invention, and described device can be described in Fig. 1
Access node AN or Ethernet switch.Described device includes network interface 51, processor 52 and memorizer 53.System is total
Line 54 is used for connecting network interface 51, processor 52 and memorizer 53.
Network interface 51 is used for communicating with wideband network gateway (BNG) and subscriber's main station.
Memorizer 53 can be permanent memory, such as hard disk drive and flash memory, has software module in memorizer 53
And device driver.Software module is able to carry out the various functions module of said method of the present invention;Device driver is permissible
It is network and interface drive program.
When device starts, these component softwares are loaded in memorizer 53, are then accessed by processor 52 and execute
As given an order:
The first packet message from network side is received by network interface, described first packet message is Internet protocol
The IPv6 packet message of version 6, described first packet message includes purpose C-IPv6 address and the mark use identifying subscriber's main station
The purpose V-MAC address of family circuit;
According to the purpose C-IPv6 address in described first packet message, determine that the MAC encapsulation of downlink user circuit is required
Mark subscriber's main station purpose C-MAC address, described purpose C-MAC address is according to the C-IPv6 address in the first packet message
Static mappings rule and the purpose C-MAC address of mark subscriber's main station between determines;
Purpose V-MAC address in described first packet message is replaced with purpose C-MAC of described mark subscriber's main station
Address, is encapsulated as second packet message;
According to the purpose V-MAC address in described first packet message, determine the downlink user of described second packet message
Line port, the downlink user line port of described second packet message is according to purpose V-MAC in described first packet message
Static mappings rule between address and subscriber line ports determines;
Forward described second packet message to described downlink user line port.
In preferably embodiment, described according to the purpose C-IPv6 address in described first packet message, under determination
The purpose C-MAC address of the mark subscriber's main station needed for MAC encapsulation of row subscribers' line, specifically includes:Obtain described purpose C-
The interface identifier IID of latter 64 in IPv6 address, determines described purpose CMAC address according to described IID afterwards.
Above-mentioned apparatus for forwarding message is to realize the method described in Fig. 2, and concrete manifestation form can be according to concrete application
Setting.
Professional should further appreciate that, each example describing in conjunction with the embodiments described herein
Unit and algorithm steps, can be hard in order to clearly demonstrate with electronic hardware, computer software or the two be implemented in combination in
Part and the interchangeability of software, generally describe composition and the step of each example in the above description according to function.
These functions to be executed with hardware or software mode actually, the application-specific depending on technical scheme and design constraint.
Professional and technical personnel can use different methods to each specific application realize described function, but this realization is not
It is considered as beyond the scope of this invention.
Method in conjunction with the embodiments described herein description or the step of algorithm, can use hardware, computing device
Software module, or the combination of the two is implementing.Software module can be placed in internal memory, random access memory (RAM), read-only storage
Device (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technology neck
In known any other form of storage medium in domain.
Above-described specific embodiment, has been carried out to the purpose of the present invention, technical scheme and beneficial effect further
Describe in detail, be should be understood that the specific embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, all any modification, equivalent substitution and improvement within the spirit and principles in the present invention, done etc., all should comprise
Within protection scope of the present invention.
Claims (10)
1. a kind of message forwarding method is it is characterised in that methods described includes:
Receive the first packet message from network side, described first packet message is the IPv6 packet of internet protocol version 6
Message, described first packet message includes identifying the purpose C-IPv6 address of subscriber's main station and purpose V- of mark subscribers' line
MAC Address;
According to the purpose C-IPv6 address in described first packet message, determine the required mark of the MAC encapsulation of downlink user circuit
Know the purpose C-MAC address of subscriber's main station, described purpose C-MAC address is according to the purpose C-IPv6 address in the first packet message
Static mappings rule and the purpose C-MAC address of mark subscriber's main station between determines;
Purpose V-MAC address in described first packet message is replaced with the purpose C-MAC address of described mark subscriber's main station,
It is encapsulated as second packet message;
According to the purpose V-MAC address in described first packet message, determine the downlink user circuit of described second packet message
Port, the downlink user line port of described second packet message is according to the purpose V-MAC address in described first packet message
Static mappings rule and subscriber line ports between determines;
Forward described second packet message to described downlink user line port.
2. message forwarding method as claimed in claim 1 it is characterised in that described according to the mesh in described first packet message
C-IPv6 address, determine the purpose C-MAC address of the required mark subscriber's main station of MAC encapsulation of downlink user circuit, specifically
Including:
Obtain the interface identifier IID of latter 64 in described purpose C-IPv6 address;
Described purpose C-MAC address is determined according to described IID.
3. message forwarding method as claimed in claim 1 is it is characterised in that also include source MAC in described first packet message
Address,
Described purpose C-MAC that purpose V-MAC address in described first packet message is replaced with described mark subscriber's main station
Address, is encapsulated as also including during second packet message:
Described source MAC is replaced with the V-MAC address of mark subscribers' line.
4. message forwarding method as claimed in claim 1 it is characterised in that described mark subscriber's main station purpose C-IPv6 ground
Location distributes to subscriber's main station by local terminal by DHCPv6 agreement, the interface identifier of latter 64 in 128 of described C-IPv6 address
IID, according to static mappings rule, is generated by the C-MAC address of subscriber's main station.
5. a kind of apparatus for forwarding message is it is characterised in that described device includes:
Receiving unit, for receiving the first packet message from network side, described first packet message is Internet protocol version
This 6 IPv6 packet message, described first packet message includes purpose C-IPv6 address and the mark user identifying subscriber's main station
The purpose V-MAC address of circuit;
First determining unit, in order to according to the purpose C-IPv6 address in described first packet message, to determine downlink user circuit
The required mark subscriber's main station of MAC encapsulation purpose C-MAC address, described purpose C-MAC address is according to the first packet message
In purpose C-IPv6 address and mark subscriber's main station purpose C-MAC address between static mappings rule determine;
Processing unit, in order to replace with described mark subscriber's main station by the purpose V-MAC address in described first packet message
Purpose C-MAC address, is encapsulated as second packet message;
Second determining unit, in order to according to the purpose V-MAC address in described first packet message, to determine described second packet report
The downlink user line port of literary composition, the downlink user line port of described second packet message is according in described first packet message
Purpose V-MAC address and subscriber line ports between static mappings rule determine;
Transmitting element, in order to forward described second packet message to described downlink user line port.
6. apparatus for forwarding message as claimed in claim 5 it is characterised in that described first determining unit specifically for:
Obtain the interface identifier IID of latter 64 in described purpose C-IPv6 address;
Described purpose C-MAC address is determined according to described IID.
7. apparatus for forwarding message as claimed in claim 5 is it is characterised in that also include source MAC in described first packet message
Address,
Purpose V-MAC address in described first packet message is being replaced with described mark subscriber's main station by described processing unit
Purpose C-MAC address, is encapsulated as being additionally operable to during second packet message:
Described source MAC is replaced with the V-MAC address of mark subscribers' line.
8. apparatus for forwarding message as claimed in claim 5 it is characterised in that described mark subscriber's main station purpose C-IPv6 ground
Location distributes to subscriber's main station by described apparatus for forwarding message by DHCPv6 agreement, in 128 of described purpose C-IPv6 address
The interface identifier IID of 64, according to static mappings rule, is generated by the C-MAC address of subscriber's main station afterwards.
9. a kind of apparatus for forwarding message is it is characterised in that described device includes:
Network interface;
Processor;
Memorizer;
Physical store application program in which memory includes can be used for making described processor and described device execution following
The instruction of process:
The first packet message from network side is received by network interface, described first packet message is internet protocol version
6 IPv6 packet message, described first packet message includes purpose C-IPv6 address and the mark user's line identifying subscriber's main station
The purpose V-MAC address on road;
According to the purpose C-IPv6 address in described first packet message, determine the required mark of the MAC encapsulation of downlink user circuit
Know the purpose C-MAC address of subscriber's main station, described purpose C-MAC address is according to the purpose C-IPv6 address in the first packet message
Static mappings rule and the purpose C-MAC address of mark subscriber's main station between determines;
Purpose V-MAC address in described first packet message is replaced with the purpose C-MAC address of described mark subscriber's main station,
It is encapsulated as second packet message;
According to the purpose V-MAC address in described first packet message, determine the downlink user circuit of described second packet message
Port, the downlink user line port of described second packet message is according to the purpose V-MAC address in described first packet message
Static mappings rule and subscriber line ports between determines;
Forward described second packet message to described downlink user line port.
10. apparatus for forwarding message as claimed in claim 9 is it is characterised in that purpose C-IPv6 of described mark subscriber's main station
Address distributes to subscriber's main station by described apparatus for forwarding message by DHCPv6 agreement, 128 of described purpose C-IPv6 address
In latter 64 interface identifier IID according to static mappings rule, by subscriber's main station C-MAC address generate.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/086304 WO2014089746A1 (en) | 2012-12-10 | 2012-12-10 | Message forwarding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104040986A CN104040986A (en) | 2014-09-10 |
CN104040986B true CN104040986B (en) | 2017-03-08 |
Family
ID=50933670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201280002282.8A Active CN104040986B (en) | 2012-12-10 | 2012-12-10 | Message forwarding method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104040986B (en) |
WO (1) | WO2014089746A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333169B (en) * | 2020-10-28 | 2023-05-23 | 锐捷网络股份有限公司 | Message processing method, device, electronic equipment and computer readable medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132285A (en) * | 2006-08-23 | 2008-02-27 | 华为技术有限公司 | System and method for implementing MAC-IN-MAC |
CN101521631A (en) * | 2009-04-14 | 2009-09-02 | 华为技术有限公司 | Treatment method, equipment and system for VPLS network messages |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101213817B (en) * | 2005-06-30 | 2011-08-03 | 艾利森电话股份有限公司 | Mapping original MAC address of terminal to unique locally administrated virtual MAC address |
CN101127696B (en) * | 2006-08-15 | 2012-06-27 | 华为技术有限公司 | Data forwarding method for layer 2 network and network and node devices |
KR100927126B1 (en) * | 2007-11-26 | 2009-11-18 | 한국전자통신연구원 | The entry and exit nodes of the MPS network with improved packet transmission speed, and the packet transmission speed improvement method of the MPS network system |
CN101299718B (en) * | 2008-06-13 | 2011-04-13 | 华为技术有限公司 | Port switching method, network equipment and network system |
US8194661B2 (en) * | 2009-09-30 | 2012-06-05 | International Business Machines Corporation | Autoconfiguration of an IPv6 component in a segmented network |
CN102025796B (en) * | 2010-11-23 | 2014-06-11 | 中兴通讯股份有限公司 | MAC (media access control) address updating method and device |
-
2012
- 2012-12-10 WO PCT/CN2012/086304 patent/WO2014089746A1/en active Application Filing
- 2012-12-10 CN CN201280002282.8A patent/CN104040986B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132285A (en) * | 2006-08-23 | 2008-02-27 | 华为技术有限公司 | System and method for implementing MAC-IN-MAC |
CN101521631A (en) * | 2009-04-14 | 2009-09-02 | 华为技术有限公司 | Treatment method, equipment and system for VPLS network messages |
Also Published As
Publication number | Publication date |
---|---|
WO2014089746A1 (en) | 2014-06-19 |
CN104040986A (en) | 2014-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4801153B2 (en) | Access device, routing device and method for supporting IPv6 stateless address configuration in communication network | |
CN102244688B (en) | Message forwarding method, apparatus thereof and system threof | |
CN1822570B (en) | The automatic discovering method of the pseudo-circuit peer address carried out in based on the network of Ethernet | |
EP4231597A1 (en) | Method for forwarding bier message, and device and system | |
CN100583904C (en) | Automatic configuration method for host address in IPV6 network | |
CN102904976B (en) | Extended double stateless IPv4(Internet Protocol) -IPv6 translation method based on prefix distribution | |
JP2012525018A (en) | Method and apparatus for dealing with duplicate MAC addresses | |
EP2654250A2 (en) | Virtual local area network identity transformation method and apparatus | |
CN102821165B (en) | Ip address conversion method and device | |
CN104270475A (en) | System and method for achieving intercommunication between IPv4 network and IPv6 network based on NAT64 | |
US8867542B2 (en) | Method and apparatus for connecting subscriber devices to an IPv6-capable aggregation network | |
CN112929284A (en) | ND message identification method and system under IPv6VXLAN scene | |
Rooney | Introduction to IP address management | |
CN104040986B (en) | Message forwarding method and device | |
US20070140119A1 (en) | Access multiplexer | |
CN112532563A (en) | Message sending method and device | |
Cui et al. | State management in IPv4 to IPv6 transition | |
CN105917634A (en) | Method, device and system for dynamically allocating IP address | |
Isaac | Comparative Analysis of IPV4 and IPV6 | |
CN104468305A (en) | Three-layer virtual private network achieving method and device | |
CN108322400B (en) | Message processing method, system and routing equipment | |
Wang et al. | Mac address translation for enabling scalable virtual private lan services | |
Chimiak et al. | Enhanced IP: IPv4 with 64-bit addresses | |
CN115208857A (en) | Address allocation method, device and equipment | |
CN116488958A (en) | Gateway processing method, virtual access gateway, virtual service gateway and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |