CN102055753A - Method and device for processing Ethernet data packet carrying IPv6 data - Google Patents

Method and device for processing Ethernet data packet carrying IPv6 data Download PDF

Info

Publication number
CN102055753A
CN102055753A CN2009102359075A CN200910235907A CN102055753A CN 102055753 A CN102055753 A CN 102055753A CN 2009102359075 A CN2009102359075 A CN 2009102359075A CN 200910235907 A CN200910235907 A CN 200910235907A CN 102055753 A CN102055753 A CN 102055753A
Authority
CN
China
Prior art keywords
multicast
packet
bag
ethernet data
protocol
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.)
Granted
Application number
CN2009102359075A
Other languages
Chinese (zh)
Other versions
CN102055753B (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.)
Binzhou Dayou New Energy Development Co ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200910235907.5A priority Critical patent/CN102055753B/en
Publication of CN102055753A publication Critical patent/CN102055753A/en
Application granted granted Critical
Publication of CN102055753B publication Critical patent/CN102055753B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for processing an Ethernet data packet carrying IPv6 (Internet Protocol Version) data. The method comprises the following steps: an access device for the IPv6 network receives the Ethernet data packet (The destination address of which is a multicast address) carrying IPv6 data; a multicast data packet and/or a multicast protocol packet are distinguished from the received Ethernet data packet; and the corresponding forwarding processing is carried out to the multicast data packet and/or the multicast protocol packet. Since the Ethernet data packet is distinguished on two MAC layers, the multicast protocol packet is directly extracted on the two layers through the access device for the IPv6 network, the access device for the IPv6 network can simply and correctly distinguish the multicast data packet from the multicast protocol packet, the complexity of distinguishing the multicast data packet from the multicast protocol packet is greatly lowered, and the design difficulty of the access device is further reduced; and furthermore, the access device for the IPv6 network forbids a user from sending the multicast data packet to the access device.

Description

A kind of method and device of handling the Ethernet data bag of carrying IPv6 data
Technical field
The present invention relates to the Ethernet data transmission technology, refer to the method and the device of the Ethernet data bag of a kind of processing carrier Internet protocol version 6 (IPv6, Internet Protocol version 6) data especially.
Background technology
The rapid expansion of the high speed development of Internet and scale makes existing internet protocol version four (IPv4, Internet Protocol version 4) be faced with a lot of problems on autgmentability and needs to be resolved hurrily, such as address space wretched insufficiency etc.Because the IPv4 address space faces exhaustion just gradually, some short-term projects that delay address consumption are implemented, and some long-term solutions such as IPv6 technology also progressively are being implemented simultaneously.The purpose of IPv6 is exactly to be used for solving IPv4 to use the problem that occurs.
The address style of IPv6 is different with IPV4, does not have broadcast address, and IPv6 uses multicast address to replace broadcast address, the multicast ip address of IPv6 hint obliquely at for the mode of two layer MAC address also different with IPv4.In the multicast ip address of IPv6, preceding 16 (bits) are 0x3333, and back 32 is back 32 of multicast ip address.There is certain problem in multicast ip address when hinting obliquely at for two layer MAC address like this, and promptly identical back 32 multicast ip address can be hinted obliquely at into identical multicast two layer MAC address.And according to the agreement regulation, the protocol package of IPv6 and multicast packet all are to use multicast address, and will cause and can not distinguish which kind of Ethernet data bag at the layer two MAC layer is the multicast protocol bag, and which kind of Ethernet data bag is a multicast packet.
For access device, the forwarding of multicast packet generally is to be controlled by agreement, generate multicast control tabulation, determine which port can add multicast group, because multicast packet and the protocol package of IPv6 do not have two layers differentiation, so need analyze 3 layers is to know just more than the IP layer that the Ethernet data bag is multicast packet or multicast protocol bag, could correct decision whether send to multicast control protocol processor to the Ethernet data bag.Such processing mode needs the port of receive multicast packet and multicast protocol bag to have very strong ability, has increased the design difficulty of access device, makes access device become complicated to the differentiation of multicast packet and multicast protocol bag.
In the IPv4 network, generally, in order to prevent that the user is provided with multicast service privately, forbid that user port sends multicast traffic stream, that the MAC Address as agreements such as ARP that user side is initiated is used is broadcast address (0XFFFFFFFFFFFF), and multicast address is the MAC Address of 0x01005E beginning, so can send multicast packet to access device to forbid the user by filtering the MAC Address packet of 0x01005E on the user port.
But, in the IPv6 network, owing to do not have broadcast address, IPv6 to be to use multicast address to replace broadcast address.Therefore, the access device of IPv6 network can not directly extract the multicast protocol bag at two layers, has improved and has distinguished the complexity of multicast packet and multicast protocol bag, thereby increased the design difficulty of access device; And the access device of IPv6 network can not forbid that the user sends multicast packet to access device.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method of handling the Ethernet data bag of carrying IPv6 data, can guarantee that the access device of IPv6 network is simple, right area divides multicast packet and multicast protocol bag.
Another object of the present invention is to provide a kind of device of handling the Ethernet data bag of carrying IPv6 data, can guarantee that the access device of IPv6 network is simple, right area divides multicast packet and multicast protocol bag.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method of handling the Ethernet data bag of carrier Internet protocol version 6IPv6 data comprises:
The access device of IPv6 network receives the Ethernet data bag that destination address is the carrying IPv6 data of multicast address, from the Ethernet data bag that receives, distinguish multicast packet and/or multicast protocol bag, and described multicast packet and/or multicast protocol bag are transmitted processing accordingly.
Before sending described Ethernet data bag the Ethernet protocol type of described Ethernet data bag is carried out mark, described access device carries out the differentiation of multicast packet and/or multicast protocol bag according to the Ethernet protocol type identification of described Ethernet data bag.
The described Ethernet data bag that receives is from multicast packet port or user port.
This method also comprises:
For multicast packet, carry out the forwarding of duplicating of multicast packet from the multicast packet port;
For multicast packet from user port, described multicast packet is transmitted to be treated to directly abandon the described multicast packet that receives or the described multicast packet that receives carried out inundation handle.
The described method of distinguishing multicast packet and/or multicast protocol bag from the Ethernet data bag that receives is:
According to the Ethernet protocol type identification that is used to distinguish the different agreement categorical data in the described Ethernet data bag that receives, judge the type of Ethernet data bag, if what the Ethernet protocol type identification was represented is multicast packet, then judging the described Ethernet data bag that receives is multicast packet; If what the Ethernet protocol type identification was represented is the multicast protocol bag, then judging the described Ethernet data bag that receives is the multicast protocol bag.
The described Ethernet data bag that receives is two layers of Ethernet data bag.
A kind of device of handling the Ethernet data bag of carrier Internet protocol version 6IPv6 data comprises judge module, multicast packet packet handing module and multicast protocol packet handing module, wherein,
Judge module is used to receive the Ethernet data that destination address is a multicast address, and judging the Ethernet data bag that receives is multicast packet, and multicast packet is exported to the multicast packet packet handing module; Judging the Ethernet data bag that receives is the multicast protocol bag, and the multicast protocol bag is exported to the multicast protocol packet handing module;
The multicast packet packet handing module is used for multicast packet is transmitted processing;
The multicast protocol packet handing module is used for the multicast protocol bag is transmitted processing.
Described judge module is further used for distinguishing the Ethernet data bag that receives from user port, is under the situation of multicast packet judging the Ethernet data bag that receives, and directly abandons or multicast packet is carried out inundation handle; Judging the Ethernet data bag that receives is under the situation of multicast protocol bag, the multicast protocol bag is duplicated to transmit handle.
Described device is arranged in the access device; The input interface of described judge module comprises multicast packet port and user port.
The technical scheme that provides from the invention described above as can be seen, the access device of IPv6 network receives the Ethernet data bag that destination address is the carrying IPv6 data of multicast address, from the Ethernet data bag that receives, distinguish multicast packet and/or multicast protocol bag, and described multicast packet and/or multicast protocol bag are transmitted processing accordingly.The present invention is by in the differentiation of layer two MAC layer to the Ethernet data bag, make the access device of IPv6 network directly extract the multicast protocol bag at two layers, the access device that has guaranteed the IPv6 network is simple, right area divides multicast packet and multicast protocol bag, greatly reduce the complexity of distinguishing multicast packet and multicast protocol bag, thereby reduced the design difficulty of access device; And the access device of IPv6 network has forbidden that the user sends multicast packet to access device.Forbid that simultaneously the user sends multicast packet to access device.
Description of drawings
Fig. 1 is the flow chart of the method for process IP v6 Ethernet data bag of the present invention;
Fig. 2 is the composition structural representation of the device of process IP v6 Ethernet data bag of the present invention.
Embodiment
Fig. 1 is the flow chart of the method for process IP v6 Ethernet data bag of the present invention, as shown in Figure 1, comprising:
It is the Ethernet data of the carrying IPv6 data of multicast address that the access device of step 100:IPv6 network receives destination address.
The IPv6 Ethernet data has different Ethernet protocol types, and protocol type comprises IPv6 unicast data (adopting the 0x86DD sign), IPv6 multicast packet and IPv6 protocol massages.In IEEE, IPv6 multicast packet and IPv6 protocol massages are not carried out the differentiation of protocol type, use 0x8B01 to be designated the IPv6 multicast packet herein, 0x8B02 is designated the IPv6 protocol massages, in this article, the sign that will be used to distinguish the different agreement categorical data is called the Ethernet protocol type identification, need to prove, only be an example herein, also can adopt other value to distinguish different Ethernet protocol types.
The IPv6 multicast packet and the IPv6 protocol massages that send to access device need the ethernet type of message is carried out mark before transmission, thereby access device can carry out the differentiation of data according to these type identifications.
Step 101: judge whether the Ethernet data bag that receives is multicast packet, if enter step 102, otherwise enters step 103.This step is carried out at the layer two MAC layer, and the Ethernet data bag that receives is two layers of Ethernet data bag.
According to the Ethernet protocol type identification of the Layer 2 Multicast Ethernet data bag that receives, judge the type of Ethernet data bag, if the Ethernet protocol type identification is 0x8B01, then judging the Ethernet data bag is multicast packet, enters step 102; If the Ethernet protocol type identification is 0x8B02, then judging the Ethernet data bag is the multicast protocol bag, enters step 103.
Step 102: multicast packet is transmitted processing.This step roughly comprises according to the multicast control table carries out transmitting multicast data, the function that the realization multicast packet duplicates etc.Specific implementation belongs to those skilled in the art's conventional techniques means, repeats no more here.
Step 103: the multicast protocol bag is transmitted processing.This step roughly comprises according to the multicast protocol bag carries out perhaps generating the transmitting multicast data control table, if RA message can be carried out inundation etc. in the VLAN of correspondence such as being that MLD agreement needs send to corresponding processor and handle.Specific implementation belongs to those skilled in the art's conventional techniques means, repeats no more here.
The receiving port of the access device of IPv6 network comprises multicast packet port and user port, has different processing modes from the data of different receiving ports.Processing shown in Figure 1 is to carry out at the Ethernet data bag from the multicast packet port.Further, if the Ethernet data bag comes from user port, so, after distinguishing the Ethernet data bag that receives and being multicast packet, can directly abandon or multicast packet is carried out inundation handle; After distinguishing the Ethernet data bag that receives and being the multicast protocol bag, the multicast protocol bag is transmitted processing.
Fig. 2 handles the composition structural representation of device of the Ethernet data bag of carrying IPv6 data for the present invention, as shown in Figure 2, comprise judge module, multicast packet packet handing module and multicast protocol packet handing module, wherein,
Judge module is used to receive the Ethernet data that destination address is a multicast address, and judging the Ethernet data bag that receives is multicast packet, and multicast packet is exported to the multicast packet packet handing module; Judging the Ethernet data bag that receives is the multicast protocol bag, and the multicast protocol bag is exported to the multicast protocol packet handing module.
The multicast packet packet handing module is used for multicast packet is transmitted processing.
The multicast protocol packet handing module is used for the multicast protocol bag is transmitted processing.
Described judge module is further used for distinguishing the Ethernet data bag that receives from user port, is multicast packet judging the Ethernet data bag that receives, and directly abandons or multicast packet is carried out inundation handle; Judging the Ethernet data bag that receives is the multicast protocol bag, and the multicast protocol bag is transmitted processing.
The device of process IP v6 Ethernet data bag of the present invention can be arranged in the access device, at this moment,
For the multicast packet receiving port of access device, judge module is multicast packet or multicast protocol bag according to the Ethernet protocol type classification after receiving the data that destination address is a multicast address; For multicast packet, export to the multicast packet packet handing module, for the multicast protocol bag, export to the multicast protocol packet handing module.The multicast packet packet handing module carries out transmitting multicast data according to the multicast control table, the function that the realization multicast packet duplicates etc.The multicast protocol packet handing module carries out following processing according to the multicast protocol bag: such as the multicast protocol bag is the MLD agreement, need send to corresponding processor further handles, RA message generates the transmitting multicast data control table for another example, if can be carried out inundation in the VLAN of correspondence.
User port for access device, judge module is after receiving the data that destination address is a multicast address, according to the Ethernet protocol type classification is that multicast packet or multicast protocol bag are for multicast packet, export to the multicast packet packet handing module, for the multicast protocol bag, export to the multicast protocol packet handing module.The multicast packet packet handing module can abandon the multicast packet that user port is sent, and also can carry out inundation to this multicast packet.The multicast protocol packet handing module carries out following processing according to the multicast protocol bag: such as the multicast protocol bag is the MLD agreement, need send to corresponding processor further handles, RA message generates the transmitting multicast data control table for another example, if can be carried out inundation in the VLAN of correspondence.Like this, also up multicast protocol bag has been carried out rate limit accordingly, thereby reduced load for processor.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. a method of handling the Ethernet data bag of carrier Internet protocol version 6IPv6 data is characterized in that, comprising:
The access device of IPv6 network receives the Ethernet data bag that destination address is the carrying IPv6 data of multicast address, from the Ethernet data bag that receives, distinguish multicast packet and/or multicast protocol bag, and described multicast packet and/or multicast protocol bag are transmitted processing accordingly.
2. method according to claim 1, it is characterized in that, before sending described Ethernet data bag the Ethernet protocol type of described Ethernet data bag is carried out mark, described access device carries out the differentiation of multicast packet and/or multicast protocol bag according to the Ethernet protocol type identification of described Ethernet data bag.
3. method according to claim 1 is characterized in that, the described Ethernet data bag that receives is from multicast packet port or user port.
4. method according to claim 3 is characterized in that, this method also comprises:
For multicast packet, carry out the forwarding of duplicating of multicast packet from the multicast packet port;
For multicast packet from user port, described multicast packet is transmitted to be treated to directly abandon the described multicast packet that receives or the described multicast packet that receives carried out inundation handle.
5. method according to claim 2 is characterized in that, the described method of distinguishing multicast packet and/or multicast protocol bag from the Ethernet data bag that receives is:
According to the Ethernet protocol type identification that is used to distinguish the different agreement categorical data in the described Ethernet data bag that receives, judge the type of Ethernet data bag, if what the Ethernet protocol type identification was represented is multicast packet, then judging the described Ethernet data bag that receives is multicast packet; If what the Ethernet protocol type identification was represented is the multicast protocol bag, then judging the described Ethernet data bag that receives is the multicast protocol bag.
6. method according to claim 1 or 5 is characterized in that the described Ethernet data bag that receives is two layers of Ethernet data bag.
7. a device of handling the Ethernet data bag of carrier Internet protocol version 6IPv6 data is characterized in that, comprises judge module, multicast packet packet handing module and multicast protocol packet handing module, wherein,
Judge module is used to receive the Ethernet data that destination address is a multicast address, and judging the Ethernet data bag that receives is multicast packet, and multicast packet is exported to the multicast packet packet handing module; Judging the Ethernet data bag that receives is the multicast protocol bag, and the multicast protocol bag is exported to the multicast protocol packet handing module;
The multicast packet packet handing module is used for multicast packet is transmitted processing;
The multicast protocol packet handing module is used for the multicast protocol bag is transmitted processing.
8. device according to claim 7, it is characterized in that, described judge module, be further used for distinguishing the Ethernet data bag that receives from user port, judging the Ethernet data bag that receives is under the situation of multicast packet, directly abandons or multicast packet is carried out inundation handle; Judging the Ethernet data bag that receives is under the situation of multicast protocol bag, the multicast protocol bag is duplicated to transmit handle.
9. according to claim 7 or 8 described devices, it is characterized in that described device is arranged in the access device; The input interface of described judge module comprises multicast packet port and user port.
CN200910235907.5A 2009-10-29 2009-10-29 Method and device for processing Ethernet data packet carrying IPv6 data Expired - Fee Related CN102055753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910235907.5A CN102055753B (en) 2009-10-29 2009-10-29 Method and device for processing Ethernet data packet carrying IPv6 data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910235907.5A CN102055753B (en) 2009-10-29 2009-10-29 Method and device for processing Ethernet data packet carrying IPv6 data

Publications (2)

Publication Number Publication Date
CN102055753A true CN102055753A (en) 2011-05-11
CN102055753B CN102055753B (en) 2015-06-03

Family

ID=43959681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910235907.5A Expired - Fee Related CN102055753B (en) 2009-10-29 2009-10-29 Method and device for processing Ethernet data packet carrying IPv6 data

Country Status (1)

Country Link
CN (1) CN102055753B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113484A (en) * 2013-04-19 2014-10-22 中兴通讯股份有限公司 Message forwarding processing method and device
CN105264862A (en) * 2013-11-18 2016-01-20 思科技术公司 Filtering at lower network protocol layers
CN106888279A (en) * 2017-03-24 2017-06-23 联想(北京)有限公司 A kind of method and LAN communication system for setting up communication

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741500A (en) * 2005-09-13 2006-03-01 中兴通讯股份有限公司 Virtual exchanging method capable of routing
CN101119311A (en) * 2007-09-12 2008-02-06 中兴通讯股份有限公司 Method and device for controlling multicast data flow

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741500A (en) * 2005-09-13 2006-03-01 中兴通讯股份有限公司 Virtual exchanging method capable of routing
CN101119311A (en) * 2007-09-12 2008-02-06 中兴通讯股份有限公司 Method and device for controlling multicast data flow

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113484A (en) * 2013-04-19 2014-10-22 中兴通讯股份有限公司 Message forwarding processing method and device
CN105264862A (en) * 2013-11-18 2016-01-20 思科技术公司 Filtering at lower network protocol layers
CN105264862B (en) * 2013-11-18 2019-03-22 思科技术公司 In the filtering that lower network protocol layer carries out
CN106888279A (en) * 2017-03-24 2017-06-23 联想(北京)有限公司 A kind of method and LAN communication system for setting up communication
CN106888279B (en) * 2017-03-24 2021-07-16 联想(北京)有限公司 Method for establishing communication and local area network communication system

Also Published As

Publication number Publication date
CN102055753B (en) 2015-06-03

Similar Documents

Publication Publication Date Title
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
EP2100406B1 (en) Method and apparatus for implementing multicast routing
WO2015074324A1 (en) Data packet express forwarding method and apparatus
CN102263774B (en) Method and device for processing source role information
CN102957616B (en) In the method and system of ASIC repeating TRILL network message
CN102215170A (en) Method and processor for restraining Internet storm
CN101534226A (en) VLAN-based whole network loop detection method and loop detection equipment
CN101115006A (en) Three-layer packet forwarding method and routing device and two-layer switch module
CN102857429B (en) The method and apparatus of route is carried in TRILL network
CN106375223B (en) A kind of data forwarding system and method based on SDN
CN101877671A (en) Sending method of mirror image message, switch chip and Ethernet router
CN102984070B (en) A kind of Ethernet is without the method for numbering Interface realization data retransmission
CN102255787B (en) Message processing method based on quality of service and operator network edge equipment
CN102045250B (en) Forwarding method for multicast message in VPLS, and service provider edge equipment
CN107995130A (en) A kind of fast shifting method of fragment message
CN102201990A (en) Service control method and system for autonomous network
CN104660509B (en) The method for processing forwarding of data message in a kind of access gateway
CN102932229B (en) A kind of method of packet being carried out to encryption and decryption process
CN102055753A (en) Method and device for processing Ethernet data packet carrying IPv6 data
CN104883630B (en) The cascade adaption system of multicast and method in PON system
CN102694734B (en) Two-layer switching equipment realizes the method for multicast based on linux kernel bridge
CN102868642A (en) Method and device for achieving NVGRE message transmission in application specific integrated circuit (ASIC)
CN103945333A (en) Group call service data transmission method
TW200622853A (en) Method for multicast packet forwarding in a switch
CN107018081A (en) A kind of method for being used to realize the 1+1 protection of point-to-multipoint

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
TR01 Transfer of patent right

Effective date of registration: 20201223

Address after: 256651 Bincheng District, Binzhou, Shandong, Beizhen, Phoenix Road three, road ten

Patentee after: BINZHOU DAYOU NEW ENERGY DEVELOPMENT Co.,Ltd.

Address before: 518057 Ministry of justice, Zhongxing building, South Science and technology road, Nanshan District hi tech Industrial Park, Shenzhen, Guangdong

Patentee before: ZTE Corp.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150603

CF01 Termination of patent right due to non-payment of annual fee