CN112839057A - Flexible and extensible Ethernet message excitation generator - Google Patents

Flexible and extensible Ethernet message excitation generator Download PDF

Info

Publication number
CN112839057A
CN112839057A CN202110174137.9A CN202110174137A CN112839057A CN 112839057 A CN112839057 A CN 112839057A CN 202110174137 A CN202110174137 A CN 202110174137A CN 112839057 A CN112839057 A CN 112839057A
Authority
CN
China
Prior art keywords
head
ethpkt
ethernet
extensible
flexible
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.)
Pending
Application number
CN202110174137.9A
Other languages
Chinese (zh)
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.)
Xinhe Semiconductor Technology Wuxi Co Ltd
Original Assignee
Xinhe Semiconductor Technology Wuxi 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 Xinhe Semiconductor Technology Wuxi Co Ltd filed Critical Xinhe Semiconductor Technology Wuxi Co Ltd
Priority to CN202110174137.9A priority Critical patent/CN112839057A/en
Publication of CN112839057A publication Critical patent/CN112839057A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a flexible and extensible Ethernet message excitation generator which is an ethpkt framework, wherein six classes are arranged under a root directory, and four classes are as follows: flag, head, payload, fcs; the four parts respectively correspond to the four parts of flag, head, payload and fcs in the frame format; the other two categories are: a queue class and an item class; the queue class describes four layers of head of L2-L5, including framing and unframing each layer; item class is a complete description of the entire frame structure; when the ethpkt needs to be instantiated in other classes, the item is directly instantiated. The generator of the invention can construct all required messages by one use case, and can greatly improve the verification efficiency and the verification completeness; the method has expandability, and a user can construct a required message format by himself even if the format does not accord with the message format specification; various modes for packet length can be configured.

Description

Flexible and extensible Ethernet message excitation generator
Technical Field
The invention relates to the technical field of Ethernet messages, in particular to a flexible and extensible Ethernet message excitation generator.
Background
Ethernet is a computer local area network technology. The IEEE802.3 standard of the IEEE organization sets forth a technical standard for ethernet, which specifies the contents of the wiring, electrical signals, and medium access layer protocols, including the physical layer. Ethernet is currently the most widely used local area network technology, replacing other local area network technologies such as token ring, FDDI, and ARCNET. There are two types of ethernet: classical ethernet and switched ethernet. The classic ethernet is an original form of ethernet, and the operating speed is different from 3-10 Mbps, while the switched ethernet is a widely used ethernet, which can operate at high speed such as 100, 1000 and 10000Mbps, and is presented in the form of fast ethernet, gigabit ethernet and gigabit ethernet, respectively.
Data packets must encapsulate header and trailer information for transmission over the ethernet physical medium. The encapsulated data packet is called a data frame, and the encapsulation information in the data frame determines how data is transmitted. There are two formats for data frames transmitted over ethernet: ethernet II and IEEE802.3 formats.
In the ethernet chip verification, the message forwarding verification process needs to construct excitation of various types of IEEE802.3 messages. In the traditional excitation construction mode, the construction of the message is not flexible enough, and only one type of message can be constructed at one time.
Disclosure of Invention
It is an object of the present invention to provide a flexible and extensible ethernet message stimulus generator to solve the problems set forth in the background above.
In the scheme of the invention, the data structure description of the frame structure is layered according to the Ethernet data frame. The directory structure and the actual frame assembly are also the hierarchical structure of the ethernet standard as shown in fig. 2, which is as follows:
layer 2: all data link layer protocols of Ethernet head, Ethernet Mpls head, CPU Ethernet head, ATM and FR are stored;
layer 3: lower layer protocols such as 802.1x, IP, which hosts layer L2 base protocols;
layer 4: the lower layer subdivision protocol of the L3 layer is stored, such as: several hundreds of protocols, TCP and UDP, which are distinguished by means of a protocol field in the IP protocol;
layer 5: the lower layer subdivision protocol of the L4 layer is stored, such as: the DHCP protocol carried by the UDP protocol.
In order to achieve the purpose, the invention provides the following technical scheme:
a flexible and extensible Ethernet message excitation generator is an ethpkt framework, and six classes are provided under a root directory, wherein the four classes are as follows: flag, head, payload, fcs; the four parts respectively correspond to the four parts of flag, head, payload and fcs in the frame format; the other two categories are: a queue class and an item class.
The ethpkt _ head is basically inherited from the ethpkt _ head _ base; some of the classes are exceptional, such as the ethpkt _ head _ eth _ mpls class, which is the base class of mpls and is extended on the ethernet basis.
The queue class describes four layers of head of L2-L5, including framing and unframing each layer; the item class is a complete description of the whole frame structure, and instantiates four classes of flag, head, payload and fcs; when the ethpkt needs to be instantiated in other classes, the item is directly instantiated.
L2 head: mainly is the 2 layer of the Ethernet, mainly is the description of DA, SA, VLAN, ETH _ head, including the generating and resolving function of each field;
l3 head: the implementation of the Ethernet three-layer header mainly refers to distinguishing Ethernet protocols by means of type fields; including IPV4/IPV6, 802.1 x; the layer is also responsible for head generation and analysis of the layer except that the type of the L2 points to the protocol type of the layer;
l4 head: upper layer protocols for IP bearers such as TCP, UDP, ICMP, IGMP, etc.; similarly, at the L4 level, a get _ ip _ ptl () function needs to be declared, which is used for a function called by the L3 level ip _ head _ gen;
l5 head: and the upper layer protocol carried by TCP and UDP, such as DHCP.
The ethpkt members include Ethptl _ type, Ethptl _ l2_ type, Ethptl _ l3_ type, Ethptl _ l4_ type, Ethptl _ l5_ type, ethpkt _ length _ max, ethpkt _ length _ min, ethpkt _ length _ gen _ mode.
Further: in addition to the 5-tier head mentioned above, a 6-tier, 7-tier head can be freely added.
Further: the message constructed by using the message generator of the present invention is not necessarily in accordance with the general message specification, for example, a message with SA preceding and DA succeeding can be constructed, although such a message has no value, in the verification of data frame scheduling, a message in an ethernet data frame format is not required, and only a message which is in accordance with the requirement and is easy to identify needs is constructed.
Compared with the prior art, the invention has the beneficial effects that: the generator of the invention can construct all required messages by one use case, and can greatly improve the verification efficiency and the verification completeness; the message generator has expandability, and a user can construct a required message format by himself even if the format does not accord with the message format specification; the user can freely call the generator at the first time of the verification platform, and the generator is independent for the platform; the message generator is configurable for various modes of packet length.
Drawings
Fig. 1 is a block diagram of a packet sender usage flow.
Fig. 2 is a layered block diagram of the ethernet standard.
Fig. 3 is a block diagram of the generator structure of the present invention.
Detailed Description
The technical solution of the present patent will be described in further detail with reference to the following embodiments.
A flexible and extensible ethernet message stimulus generator, which is described in detail as follows:
(1) inheritance relationships of all classes under ethpkt
The ethpkt _ head is basically inherited from the ethpkt _ head _ base, although some classes are exceptional, such as the ethpkt _ head _ eth _ mpls class, which is a base class of mpls and is extended on the basis of ethernet.
(2) ethpkt framework and extensions
As shown in fig. 3, the ethpkt framework has 6 classes under the root directory, where 4 classes are: flag, head, payload, fcs; these four parts correspond to the four parts of flag, head, payload and fcs in the frame format, respectively.
The other two categories are: a queue class and an item class; the former describes four-layer head of L2-L5, including framing and unframing each layer; the latter is a complete description of the whole frame structure, instantiating the first four classes; when the ethpkt needs to be instantiated in other classes, the item is directly instantiated.
L2 head: mainly layer2 of the Ethernet, mainly description of DA, SA, VLAN, ETH _ head, including generating and resolving functions of each field.
L3 head: the implementation of the ethernet three-layer header mainly refers to distinguishing the ethernet protocol by means of the type field. Including IPV4/IPV6, 802.1x, etc. Besides the protocol type of L2 pointing to itself needs to be modified at this layer, the method is also responsible for head generation and resolution at this layer.
L4 head: upper layer protocols for IP bearers such as TCP, UDP, ICMP, IGMP, etc. Similarly, at the L4 level, it is required to declare the get _ ip _ ptl () function for the function called by the L3 level ip _ head _ gen.
L5 head: and the upper layer protocol carried by TCP and UDP, such as DHCP, etc.
(3) A list of ethpkt members and methods, as shown in the following table:
Figure BDA0002940006050000041
(4) ethpkt scalability
The messages constructed using the message generator are not necessarily in accordance with the usual message specifications; for example, a message with SA preceding and DA succeeding is constructed, which has no value, but does not need a message in an ethernet data frame format when verifying data frame scheduling, and only needs to construct a message that meets our needs and is easy to identify. Furthermore, in addition to the 5-tier head mentioned above, a 6-tier, 7-tier head is freely added.
As shown in fig. 1, when the packet sender is used, the flow is as follows: sequentially generating a flag, generating a head, generating a payload, generating fcs, calculating through a pack () function, and finally outputting a message.
According to the Ethernet message excitation generator provided by the invention, a user only needs to give a specific type, and the generator can generate a corresponding message for use; furthermore, the generator is extensible, which means that in addition to known message formats, users can freely construct various formats that they want, and users can add themselves when new message needs arise.
Although the preferred embodiments of the present patent have been described in detail, the present patent is not limited to the above embodiments, and various changes can be made without departing from the spirit of the present patent within the knowledge of those skilled in the art.

Claims (8)

1. A flexible and extensible Ethernet message excitation generator is an ethpkt framework and is characterized in that six classes exist under a root directory, wherein the four classes are as follows: flag, head, payload, fcs; the four parts respectively correspond to the four parts of flag, head, payload and fcs in the frame format; the other two categories are: a queue class and an item class; the queue class describes four layers of head of L2-L5, including framing and unframing each layer; the item class is a complete description of the whole frame structure, and instantiates four classes of flag, head, payload and fcs; when the ethpkt needs to be instantiated in other classes, the item is directly instantiated.
2. The flexible and extensible ethernet message stimulus generator of claim 1, wherein the ethpkt _ head is substantially inherited from ethpkt _ head _ base; some ethernet base extensions are exceptional with classes such as the ethpkt _ head _ eth _ mpls class, which is the base class for mpls.
3. The flexible and extensible ethernet message stimulus generator of claim 1, wherein the L2 head: mainly layer2 of the Ethernet, mainly description of DA, SA, VLAN, ETH _ head, including generating and resolving functions of each field.
4. The flexible and extensible ethernet message stimulus generator of claim 1, wherein the L3 head: the implementation of the Ethernet three-layer header mainly refers to distinguishing Ethernet protocols by means of type fields; including IPV4/IPV6, 802.1 x; besides the protocol type of L2 pointing to itself needs to be modified at this layer, the method is also responsible for head generation and resolution at this layer.
5. The flexible and extensible ethernet message stimulus generator of claim 1, wherein the L4 head: upper layer protocols for IP bearers such as TCP, UDP, ICMP, IGMP, etc.; similarly, at the L4 level, it is required to declare the get _ ip _ ptl () function for the function called by the L3 level ip _ head _ gen.
6. The flexible and extensible ethernet message stimulus generator of claim 1, wherein the L5 head: and the upper layer protocol carried by TCP and UDP, such as DHCP.
7. The flexible and extensible ethernet message stimulus generator of claim 1, wherein the ethpkt members comprise Ethptl _ type, Ethptl _ l2_ type, Ethptl _ l3_ type, Ethptl _ l4_ type, Ethptl _ l5_ type, ethpkt _ length _ max, ethpkt _ length _ min, ethpkt _ length _ gen _ mode.
8. The flexible and extensible ethernet message stimulus generator of claim 1, wherein a layer 6 head and a layer 7 head can be added freely.
CN202110174137.9A 2021-02-09 2021-02-09 Flexible and extensible Ethernet message excitation generator Pending CN112839057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110174137.9A CN112839057A (en) 2021-02-09 2021-02-09 Flexible and extensible Ethernet message excitation generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110174137.9A CN112839057A (en) 2021-02-09 2021-02-09 Flexible and extensible Ethernet message excitation generator

Publications (1)

Publication Number Publication Date
CN112839057A true CN112839057A (en) 2021-05-25

Family

ID=75932823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110174137.9A Pending CN112839057A (en) 2021-02-09 2021-02-09 Flexible and extensible Ethernet message excitation generator

Country Status (1)

Country Link
CN (1) CN112839057A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184032A (en) * 2007-10-31 2008-05-21 中兴通讯股份有限公司 Stacked system equipment communication method
CN107566204A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 Excited message produces control method, device and logic detection equipment
CN108111493A (en) * 2017-12-13 2018-06-01 盛科网络(苏州)有限公司 The production method and device of a kind of excited message
CN108933787A (en) * 2018-07-02 2018-12-04 深圳市风云实业有限公司 Message forming method and device
CN109802864A (en) * 2017-11-16 2019-05-24 中兴通讯股份有限公司 Chip design and verification method, device and chip tester
CN111835591A (en) * 2020-07-10 2020-10-27 芯河半导体科技(无锡)有限公司 Method for identifying Ethernet message fast protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184032A (en) * 2007-10-31 2008-05-21 中兴通讯股份有限公司 Stacked system equipment communication method
CN107566204A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 Excited message produces control method, device and logic detection equipment
CN109802864A (en) * 2017-11-16 2019-05-24 中兴通讯股份有限公司 Chip design and verification method, device and chip tester
CN108111493A (en) * 2017-12-13 2018-06-01 盛科网络(苏州)有限公司 The production method and device of a kind of excited message
CN108933787A (en) * 2018-07-02 2018-12-04 深圳市风云实业有限公司 Message forming method and device
CN111835591A (en) * 2020-07-10 2020-10-27 芯河半导体科技(无锡)有限公司 Method for identifying Ethernet message fast protocol

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李兰: "光网络设备物理层和链路层特性测试方法与实现", 《中国硕士学位论文全文数据库(电子期刊) 信息科技辑》 *

Similar Documents

Publication Publication Date Title
Knight et al. Layer 2 and 3 virtual private networks: taxonomy, technology, and standardization efforts
CN103905283B (en) Communication means and device based on expansible VLAN
JP5106100B2 (en) Differential transfer in addressed carrier networks
EP1766876B1 (en) Technique for transferring data over a packet switched network
US7821972B1 (en) System and method for building large-scale layer 2 computer networks
Seifert et al. The all-new switch book: the complete guide to LAN switching technology
WO2022100554A1 (en) Method for forwarding bier message, and device and system
JP2005341591A (en) Virtual private network, and multi-service provisioning platform and method
Farrel The Internet and its protocols: A comparative approach
Hucaby CCNP SWITCH 642-813 official certification guide
WO2007076679A1 (en) A method and device for quality of service management based on virtual local area network stack
Klauck et al. Enhanced DNS message compression-Optimizing mDNS/DNS-SD for the use in 6LoWPANs
Kocharians et al. CCIE Routing and Switching v5. 0 Official Cert Guide
Wilkins Designing for Cisco Internetwork Solutions (DESIGN) Foundation Learing Guide
Robertazzi Basics of computer Networking
Jain et al. Performance analysis of routing protocols on IPv4 and IPv6 addressing networks
WO2021244108A1 (en) Bier multicast traffic statistics method, device and system
CN103986714B (en) Bus marco network insertion AVB networks are acted on behalf of into implementation method and device
Hucaby CCNP Routing and Switching SWITCH 300-115 Official Cert Guide: Exam 38 Cert Guide
CN112839057A (en) Flexible and extensible Ethernet message excitation generator
Warnock et al. Alcatel-Lucent Network Routing Specialist II (NRS II) Self-Study Guide: Preparing for the NRS II Certification Exams
WO2021208664A1 (en) Message detection method, device and system
CN108809795A (en) Transparent shunt method and device in a kind of LAN environment
CN113285878B (en) Load sharing method and first network equipment
Feit Local area high speed networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210525