No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE40E V800R010C00 Feature Description - NAT and IPv6 Transition 01

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
User NetStream Log Format

User NetStream Log Format

User NetStream logs are sent in binary format by the NAT device in centralized and distributed NAT deployment mode.

NOTE:
Only NAT444 and DS-Lite scenario support user NetStream log format.
Table 7-16  Description of log syntax fields

Field

Description

Length in Bytes

Remarks

version

Version number. The value is fixed to 9.

2

It is carried in the header of a user NetStream log packet.

count

Sum of the number of template FlowSet records and the number of data FlowSet records.

2

sysUpTime

Time elapsed since a CGN device was powered on. It is expressed in milliseconds.

4

UNIX Secs

Number of seconds since January 1, 1970, 00:00 (UTC).

4

Sequence Number

Sequence number of a packet.

4

Source ID

The value is calculated based on the CPU ID, slot ID, scenario, and instance ID.

4

FlowSet ID

The value of this field is 0.

2

It identifies a NetStream log template.

Length

Length of a NetStream log template. It is expressed in bytes.

2

Template ID

ID of a NetStream log template:
  • The value is 257 in an online scenario.
  • The value is 258 in an offline scenario.

2

Field Count

Number of fields:
  • The value is 7 in an online scenario.
  • The value is 8 in an offline scenario.

2

NAT_LOG_FIELD_IDX_CONTEXT_ID

ID of a VPN instance.

2

length

Length of a VPN instance ID.

2

NAT_LOG_FIELD_IDX_CONTEXT_NAME

Name of a VPN instance.

2

length

Length of a VPN instance name.

2

NAT_LOG_FIELD_IDX_ASSIGN_TS_SEC

Online duration. It is expressed in seconds.

2

length

Time (seconds) elapsed since the last login.

2

NAT_LOG_FIELD_IDX_UNASSIGN_TS_SEC

Offline duration. It is expressed in seconds.

2

length

Time (seconds) elapsed since the last logout.

2

NAT_LOG_FIELD_IDX_IPV4_INT_ADDR

Private IP address of a user.

2

length

Length of the private IP address of a user.

2

NAT_LOG_FIELD_IDX_IPV4_EXT_ADDR

Public IP address of a user.

2

length

Length of the public IP address of a user.

2

NAT_LOG_FIELD_IDX_EXT_PORT_FIRST

Start port number.

2

length

Length of the start port number.

2

NAT_LOG_FIELD_IDX_EXT_PORT_LAST

End port number.

2

length

Length of the end port number.

2

FlowSet ID

ID of a FlowSet record.

2

It is the body of a NetStream log packet.

Length

Length of the sum of data FlowSet records.

2

VPNID

VPN ID.

4

VpnName

VPN name.

64

AssignTime

Online duration. It is expressed in seconds.

4

UnassignTime

Offline duration. It is expressed in seconds.

4

INNERIP

Private IP address of a user.

In a NAT444 scenario, the value of this field is 4.

In a DS—Lite scenario, the value of this field is 16.

OUTERIP

Public IP address of a user.

4

StartPort

Start port number.

2

EndPort

End port number.

2

Example user NetStream log format:

Figure 7-2  Example user NetStream log format(parsed)
Download
Updated: 2018-07-04

Document ID: EDOC1100027155

Views: 19370

Downloads: 67

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next